bind9-ansible-role/tasks/06-cleanup.yml

11 lines
279 B
YAML

# Cleanup backed up files if all tests finished sucessfully
- name: Delete /etc/named.conf.local.bak
become: true
file:
path: /etc/bind/named.conf.local.bak
state: absent
- name: Delete all backed up zone files
become: true
shell: "rm {{bind9_zone_dir}}/*.bak"