restructure
update readme fix ansible role tags
This commit is contained in:
parent
6502f9c514
commit
7f7ae9b91d
24 changed files with 67 additions and 108 deletions
18
ansible/roles/nsd/tasks/main.yml
Normal file
18
ansible/roles/nsd/tasks/main.yml
Normal file
|
@ -0,0 +1,18 @@
|
|||
- name: Install nsd
|
||||
apt:
|
||||
name: nsd
|
||||
- name: Copy nsd.conf
|
||||
copy:
|
||||
src: "{{ role_path }}/files/nsd.conf"
|
||||
dest: /etc/nsd/nsd.conf
|
||||
register: config
|
||||
- name: Copy zone directory
|
||||
copy:
|
||||
src: "{{ role_path }}/files/zones"
|
||||
dest: /etc/nsd
|
||||
register: zones
|
||||
- name: Enable nsd
|
||||
systemd:
|
||||
name: nsd
|
||||
enabled: true
|
||||
state: "{{ 'restarted' if config.changed or zones.changed else 'started' }}"
|
Reference in a new issue