feat: Generate file for all ansible hosts

This commit is contained in:
2023-12-13 15:59:13 +01:00
parent 6258dd6d57
commit 3b2c621dca
3 changed files with 27 additions and 4 deletions

View File

@@ -11,16 +11,26 @@
become: true
notify: Recharger dnsmasq.service
- name: Déployer la configuration de l'instance
- name: Déployer la configuration des hôtes ansible
ansible.builtin.template:
src: host.conf.j2
dest: /srv/dnsmasq/{{ inventory_hostname }}.conf
src: ansible_hosts.conf.j2
dest: /srv/dnsmasq/ansible_hosts.disabled
owner: dnsmasq
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:
# src: host.conf.j2
# dest: /srv/dnsmasq/{{ inventory_hostname }}.conf
# owner: dnsmasq
# group: root
# mode: u=rw,g=r,o=r
# become: true
# notify: Recharger dnsmasq.service
- name: Déployer les configurations specifiques
ansible.builtin.template:
src: specific.conf.j2