26 lines
536 B
YAML
26 lines
536 B
YAML
# tasks file for stats script
|
|
|
|
|
|
- name: Remove crontab blacklist
|
|
ansible.builtin.cron:
|
|
name: "blacklist script"
|
|
cron_file: "blacklist_cron"
|
|
state: absent
|
|
vars:
|
|
ansible_become: yes
|
|
ansible_become_method: sudo
|
|
ansible_become_password: "{{ sudo_password }}"
|
|
|
|
- name: Remove blacklist script
|
|
copy:
|
|
src: "{{ item }}.sh"
|
|
state: absent
|
|
with_items:
|
|
- blacklist
|
|
- refill_blacklist
|
|
vars:
|
|
ansible_become: yes
|
|
ansible_become_method: sudo
|
|
ansible_become_password: "{{ sudo_password }}"
|
|
|