Infra/ansible/roles/pi_updatelist/tasks/main.yml
2020-10-28 23:00:41 +01:00

17 lines
355 B
YAML

- 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