23 lines
515 B
YAML
23 lines
515 B
YAML
|
---
|
||
|
# tasks file for security
|
||
|
|
||
|
- name: Configurer dnsmasq
|
||
|
ansible.builtin.template:
|
||
|
src: dnsmasq.conf.j2
|
||
|
dest: /etc/dnsmasq.d/cache.conf
|
||
|
owner: root
|
||
|
group: root
|
||
|
mode: u=rw,g=r,o=r
|
||
|
become: true
|
||
|
notify: Recharger dnsmasq.service
|
||
|
|
||
|
- name: Déployer la configuration de l'instance
|
||
|
ansible.builtin.template:
|
||
|
owner: dnsmasq
|
||
|
group: root
|
||
|
mode: u=rw,g=r,o=r
|
||
|
src: host.conf.j2
|
||
|
dest: /srv/dnsmasq/{{ inventory_hostname }}.conf
|
||
|
become: true
|
||
|
notify: Recharger dnsmasq.service
|