add dnsmasq and reload demon
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
parent
429fa32be0
commit
914c13d5a0
3 changed files with 15 additions and 0 deletions
5
handlers/main.yml
Normal file
5
handlers/main.yml
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
|
||||
- name: systemctl daemon-reload
|
||||
ansible.builtin.systemd:
|
||||
daemon_reload: true
|
||||
|
|
@ -31,10 +31,19 @@
|
|||
minute: "*/5"
|
||||
job: "cd /opt/two && git pull > /var/log/git-pull.log 2>&1"
|
||||
|
||||
- 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:
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ __packages:
|
|||
whois: {}
|
||||
tcpdump: {}
|
||||
bridge-utils: {}
|
||||
dnsmasq: {}
|
||||
|
||||
__git:
|
||||
__user: "{{ deploy.git_user }}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue