2023-02-12 21:58:18 +01:00
|
|
|
# tasks file for stats script
|
|
|
|
|
|
|
|
|
2023-02-12 22:28:32 +01:00
|
|
|
- name: Remove crontab get info day
|
2023-02-12 21:58:18 +01:00
|
|
|
ansible.builtin.cron:
|
|
|
|
name: "get info day"
|
|
|
|
cron_file: "get_info_day_cron"
|
|
|
|
state: absent
|
|
|
|
vars:
|
|
|
|
ansible_become: yes
|
|
|
|
ansible_become_method: sudo
|
|
|
|
ansible_become_password: "{{ sudo_password }}"
|
|
|
|
|
2023-02-12 22:28:32 +01:00
|
|
|
- name: Remove crontab get info week
|
2023-02-12 21:58:18 +01:00
|
|
|
ansible.builtin.cron:
|
|
|
|
name: "get info week"
|
|
|
|
cron_file: "get_info_week_cron"
|
|
|
|
state: absent
|
|
|
|
vars:
|
|
|
|
ansible_become: yes
|
|
|
|
ansible_become_method: sudo
|
|
|
|
ansible_become_password: "{{ sudo_password }}"
|
|
|
|
|
2023-02-12 22:28:32 +01:00
|
|
|
- name: Remove crontab get info month
|
2023-02-12 21:58:18 +01:00
|
|
|
ansible.builtin.cron:
|
|
|
|
name: "get info month"
|
|
|
|
cron_file: "get_info_month_cron"
|
|
|
|
state: absent
|
|
|
|
vars:
|
|
|
|
ansible_become: yes
|
|
|
|
ansible_become_method: sudo
|
|
|
|
ansible_become_password: "{{ sudo_password }}"
|
|
|
|
|
|
|
|
|
|
|
|
- name: Remove getinfo script
|
|
|
|
file:
|
|
|
|
path: "/usr/local/bin/sentinel/getinfo_{{ item }}.sh"
|
|
|
|
state: absent
|
|
|
|
with_items:
|
|
|
|
- day
|
|
|
|
- week
|
|
|
|
- month
|
|
|
|
vars:
|
|
|
|
ansible_become: yes
|
|
|
|
ansible_become_method: sudo
|
|
|
|
ansible_become_password: "{{ sudo_password }}"
|
|
|
|
|
2023-02-12 22:28:32 +01:00
|
|
|
- name: Remove token
|
|
|
|
file:
|
|
|
|
path: "/etc/sentinel/token"
|
|
|
|
state: absent
|
|
|
|
vars:
|
|
|
|
ansible_become: yes
|
|
|
|
ansible_become_method: sudo
|
|
|
|
ansible_become_password: "{{ sudo_password }}"
|
|
|
|
|
2023-02-12 21:58:18 +01:00
|
|
|
- name: Remove template virtualhost
|
|
|
|
file:
|
|
|
|
path: /etc/sentinel/virtualhost
|
|
|
|
state: absent
|
|
|
|
vars:
|
|
|
|
ansible_become: yes
|
|
|
|
ansible_become_method: sudo
|
|
|
|
ansible_become_password: "{{ sudo_password }}"
|