create directory supervision
This commit is contained in:
parent
d475156b3e
commit
39fab7b0dc
@ -1,22 +1,35 @@
|
|||||||
# tasks file for stats script
|
# tasks file for stats script
|
||||||
|
|
||||||
|
|
||||||
|
- name: Create supervision directory
|
||||||
|
file:
|
||||||
|
state: directory
|
||||||
|
path: "{{ item }}/supervision"
|
||||||
|
with_items:
|
||||||
|
- /usr/local/bin
|
||||||
|
- /etc
|
||||||
|
vars:
|
||||||
|
ansible_become: yes
|
||||||
|
ansible_become_method: sudo
|
||||||
|
ansible_become_password: "{{ sudo_password }}"
|
||||||
|
|
||||||
- name: Copy check_ssl script
|
- name: Copy check_ssl script
|
||||||
copy:
|
copy:
|
||||||
src: "check_ssl.sh"
|
src: "check_ssl.sh"
|
||||||
dest: "/usr/local/bin/sentinel/check_ssl.sh"
|
dest: "/usr/local/bin/supervision/check_ssl.sh"
|
||||||
mode: "0555"
|
mode: "0555"
|
||||||
vars:
|
vars:
|
||||||
ansible_become: yes
|
ansible_become: yes
|
||||||
ansible_become_method: sudo
|
ansible_become_method: sudo
|
||||||
ansible_become_password: "{{ sudo_password }}"
|
ansible_become_password: "{{ sudo_password }}"
|
||||||
|
|
||||||
- name: Crontab blacklist
|
- name: Crontab check_ssl
|
||||||
ansible.builtin.cron:
|
ansible.builtin.cron:
|
||||||
name: "check ssl script"
|
name: "check ssl script"
|
||||||
cron_file: "check_ssl_cron"
|
cron_file: "check_ssl_cron"
|
||||||
minute: "*/30"
|
minute: "*/30"
|
||||||
user: root
|
user: root
|
||||||
job: "bash /usr/local/bin/sentinel/check_ssl.sh"
|
job: "bash /usr/local/bin/supervision/check_ssl.sh"
|
||||||
vars:
|
vars:
|
||||||
ansible_become: yes
|
ansible_become: yes
|
||||||
ansible_become_method: sudo
|
ansible_become_method: sudo
|
||||||
|
Loading…
x
Reference in New Issue
Block a user