inventoryFromAnsible #4
@ -1,10 +1,16 @@
|
|||||||
---
|
---
|
||||||
# tasks file for security
|
# tasks file for security
|
||||||
|
|
||||||
|
- name: Supprimer l'ancien fichier de configuration
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: /etc/dnsmasq.d/cache.conf
|
||||||
|
state: absent
|
||||||
|
become: true
|
||||||
|
|
||||||
- name: Configurer dnsmasq
|
- name: Configurer dnsmasq
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: dnsmasq.conf.j2
|
src: dnsmasq.conf.j2
|
||||||
dest: /etc/dnsmasq.d/cache.conf
|
dest: /etc/dnsmasq.d/dns.conf
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: u=rw,g=r,o=r
|
mode: u=rw,g=r,o=r
|
||||||
|
Loading…
Reference in New Issue
Block a user