28 lines
643 B
YAML
Raw Permalink Normal View History

2023-02-12 21:25:57 +01:00
# tasks file for stats script
- name: Copy blacklist script
copy:
src: "{{ item }}.sh"
dest: "/usr/local/bin/sentinel/{{ item }}.sh"
mode: "0555"
with_items:
- blacklist
- refill_blacklist
vars:
ansible_become: yes
ansible_become_method: sudo
ansible_become_password: "{{ sudo_password }}"
- name: Crontab blacklist
ansible.builtin.cron:
name: "blacklist script"
2023-02-12 21:58:18 +01:00
cron_file: "blacklist_cron"
2023-02-12 21:25:57 +01:00
minute: "*/5"
job: "bash /usr/local/bin/sentinel/blacklist.sh"
2023-02-12 22:28:32 +01:00
user: root
2023-02-12 21:25:57 +01:00
vars:
ansible_become: yes
ansible_become_method: sudo
ansible_become_password: "{{ sudo_password }}"