[EVO] Utiliser l'inventaire d'ansible

This commit is contained in:
2023-09-22 17:25:03 +02:00
parent b9baf12530
commit 78f716a2bf
2 changed files with 20 additions and 0 deletions

View File

@@ -20,3 +20,13 @@
dest: /srv/dnsmasq/{{ inventory_hostname }}.conf
become: true
notify: Recharger dnsmasq.service
- name: Déployer le fichier d'hôte en partant de l'inventaire
ansible.builtin.template:
owner: dnsmasq
group: root
mode: u=rw,g=r,o=r
src: hosts.conf.j2
dest: /srv/dnsmasq/ansible_inventory.conf.disabled
become: true
notify: Recharger dnsmasq.service