Compare commits
No commits in common. "39fab7b0dc596306832e661aca386d0fb35e3678" and "9993844f02b2b208f2fdc6edd957991638c203bc" have entirely different histories.
39fab7b0dc
...
9993844f02
@ -11,17 +11,6 @@
|
|||||||
ansible_become_password: "{{ sudo_password }}"
|
ansible_become_password: "{{ sudo_password }}"
|
||||||
when: script is not defined
|
when: script is not defined
|
||||||
|
|
||||||
- name: Template virtualhost
|
|
||||||
template:
|
|
||||||
src: virtualhost.j2
|
|
||||||
dest: /etc/sentinel/virtualhost
|
|
||||||
mode: "0444"
|
|
||||||
vars:
|
|
||||||
ansible_become: yes
|
|
||||||
ansible_become_method: sudo
|
|
||||||
ansible_become_password: "{{ sudo_password }}"
|
|
||||||
when: script is not defined or script == "blacklist"
|
|
||||||
|
|
||||||
- name: Copy blacklist
|
- name: Copy blacklist
|
||||||
copy:
|
copy:
|
||||||
src: "{{ playbook_dir }}/blacklist/{{ inventory_hostname }}/etc/sentinel/blacklist"
|
src: "{{ playbook_dir }}/blacklist/{{ inventory_hostname }}/etc/sentinel/blacklist"
|
||||||
|
@ -1,5 +1,15 @@
|
|||||||
# tasks file for stats script
|
# tasks file for stats script
|
||||||
|
|
||||||
|
- name: Template virtualhost
|
||||||
|
template:
|
||||||
|
src: virtualhost.j2
|
||||||
|
dest: /etc/sentinel/virtualhost
|
||||||
|
mode: "0444"
|
||||||
|
vars:
|
||||||
|
ansible_become: yes
|
||||||
|
ansible_become_method: sudo
|
||||||
|
ansible_become_password: "{{ sudo_password }}"
|
||||||
|
|
||||||
- name: Template token ipinfo
|
- name: Template token ipinfo
|
||||||
template:
|
template:
|
||||||
src: token.j2
|
src: token.j2
|
||||||
|
@ -1,35 +1,22 @@
|
|||||||
# 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/supervision/check_ssl.sh"
|
dest: "/usr/local/bin/sentinel/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 check_ssl
|
- name: Crontab blacklist
|
||||||
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/supervision/check_ssl.sh"
|
job: "bash /usr/local/bin/sentinel/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