split ansible into roles
This commit is contained in:
parent
3544581bde
commit
97f93b02a8
10 changed files with 36 additions and 19 deletions
17
ansible/roles/dnsmasq/tasks/main.yml
Normal file
17
ansible/roles/dnsmasq/tasks/main.yml
Normal file
|
@ -0,0 +1,17 @@
|
|||
- name: Install dnsmasq
|
||||
apt:
|
||||
name: dnsmasq
|
||||
- name: Disable systemd-resolved
|
||||
systemd:
|
||||
name: systemd-resolved
|
||||
enabled: false
|
||||
state: stopped
|
||||
- name: Copy dnsmasq configuration
|
||||
copy:
|
||||
src: "{{ role_path }}/files/dnsmasq.conf"
|
||||
dest: "/etc/dnsmasq.conf"
|
||||
- name: Enable dnsmasq
|
||||
systemd:
|
||||
name: dnsmasq
|
||||
enabled: true
|
||||
state: started
|
Reference in a new issue