split role in multiple files
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
parent
914c13d5a0
commit
165b48cd61
4 changed files with 59 additions and 47 deletions
20
tasks/dnsmasq.yml
Normal file
20
tasks/dnsmasq.yml
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
---
|
||||
|
||||
- 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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue