Infra/ansible/roles/pi_updatelist/tasks/main.yml

17 lines
355 B
YAML
Raw Normal View History

2020-10-28 22:15:23 +01:00
- name: Install updatelist conf
register: updatelist
ansible.builtin.copy:
src: "pihole-updatelists.conf"
dest: "/etc/pihole-updatelists.conf"
mode: "0644"
owner: "root"
group: "root"
become: true
- name: Activate changes
when: updatelist.changed
become: true
ansible.builtin.command:
argv:
- pihole-updatelists