ansible_deploy/tasks/dnsmasq.yml
GnomeZworc 165b48cd61
split role in multiple files
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
2025-11-24 23:30:06 +01:00

20 lines
No EOL
519 B
YAML

---
- name: disable and stop dnsmasq
ansible.builtin.systemd:
name: "dnsmasq.service"
enabled: False
state: "stopped"
masked: true
notify: systemctl daemon-reload
- name: deploy dnsmasq
ansible.builtin.template:
src: etc/systemd/system/dnsmasq.j2
dest: "/etc/systemd/system/dnsmasq@.service"
notify: systemctl daemon-reload
- name: deploy dnsmasq in netns
ansible.builtin.template:
src: usr/local/bin/run-dnsmasq-in-netns.sh.j2
dest: "/usr/local/bin/run-dnsmasq-in-netns.sh"