Add playbooks/ssl.yml

This commit is contained in:
2026-07-05 09:22:26 +00:00
parent 2f0ec2a6e1
commit 89ee9a64ff

18
playbooks/ssl.yml Normal file
View File

@@ -0,0 +1,18 @@
- name: deploy ssl expiry check page
hosts: apache-intranet
become: true
tasks:
- name: move check_ssl.sh to its relevant directory
copy:
src: ../configs/ssl_check.sh
dest: /root/ssl_check.sh
owner: root
group: root
mode: '0755'
- name: run ssl_check.sh if the page doesnt exist
ansible.builtin.command: /root/ssl_check.sh
args:
creates: /var/www/ssl/index.html