Scott Baker | 2290b05 | 2014-05-08 10:28:22 -0700 | [diff] [blame] | 1 | --- |
| 2 | # This playbook contains plays to delete configuration files from dnsredir slice |
| 3 | - name: delete maps.d directory ( and deletes all intermeadiate directories ) |
| 4 | #copy: src={{src_dnsredir}}/{{name}}.d dest={{dst_dnsredir_confdir}} |
| 5 | file: path={{dst_dnsredir_confdir}}/{{name}}.d/maps.d state=absent |
| 6 | |
| 7 | - name: delete config directory |
| 8 | file: path={{dst_dnsredir_confdir}}/{{name}}.d/ state=absent |
| 9 | |
| 10 | - name: copy dnsredir config file |
| 11 | file: path={{dst_dnsredir_conf}}/{{name}}.conf state=absent |
| 12 | notify: restart dnsredir |
| 13 | |