diff --git a/playbooks/deploy.yaml b/playbooks/deploy.yaml index 130d914..ff9110d 100644 --- a/playbooks/deploy.yaml +++ b/playbooks/deploy.yaml @@ -105,4 +105,4 @@ - name: Setup authoritative dns servers hosts: auth-dns roles: - - auth-dns + - auth_dns diff --git a/roles/auth-dns/defaults/main.yaml b/roles/auth_dns/defaults/main.yaml similarity index 100% rename from roles/auth-dns/defaults/main.yaml rename to roles/auth_dns/defaults/main.yaml diff --git a/roles/auth-dns/handlers/main.yaml b/roles/auth_dns/handlers/main.yaml similarity index 88% rename from roles/auth-dns/handlers/main.yaml rename to roles/auth_dns/handlers/main.yaml index 0d74c51..11944a0 100644 --- a/roles/auth-dns/handlers/main.yaml +++ b/roles/auth_dns/handlers/main.yaml @@ -1,5 +1,6 @@ -- tags: [ auth-dns ] - name: restart knot +--- +- name: restart knot + tags: [ auth-dns ] become: true ansible.builtin.systemd: name: knot.service diff --git a/roles/auth-dns/meta/argument_specs.yaml b/roles/auth_dns/meta/argument_specs.yaml similarity index 100% rename from roles/auth-dns/meta/argument_specs.yaml rename to roles/auth_dns/meta/argument_specs.yaml diff --git a/roles/auth-dns/tasks/01-install.yaml b/roles/auth_dns/tasks/01-install.yaml similarity index 100% rename from roles/auth-dns/tasks/01-install.yaml rename to roles/auth_dns/tasks/01-install.yaml diff --git a/roles/auth-dns/tasks/02-configure.yaml b/roles/auth_dns/tasks/02-configure.yaml similarity index 91% rename from roles/auth-dns/tasks/02-configure.yaml rename to roles/auth_dns/tasks/02-configure.yaml index 89116a4..12b5732 100644 --- a/roles/auth-dns/tasks/02-configure.yaml +++ b/roles/auth_dns/tasks/02-configure.yaml @@ -1,5 +1,6 @@ -- tags: [ auth-dns ] - name: Ensure required directories exist +--- +- name: Ensure required directories exist + tags: [ auth-dns ] become: true loop: [ "/etc/knot", "/etc/knot/zones" ] ansible.builtin.file: @@ -9,8 +10,8 @@ group: knot mode: u=rwx,g=rx,o= -- tags: [ auth-dns ] - name: Deploy knot configuration file +- name: Deploy knot configuration file + tags: [ auth-dns ] become: true notify: restart knot ansible.builtin.template: diff --git a/roles/auth-dns/tasks/main.yaml b/roles/auth_dns/tasks/main.yaml similarity index 100% rename from roles/auth-dns/tasks/main.yaml rename to roles/auth_dns/tasks/main.yaml diff --git a/roles/auth-dns/templates/knot.conf.j2 b/roles/auth_dns/templates/knot.conf.j2 similarity index 100% rename from roles/auth-dns/templates/knot.conf.j2 rename to roles/auth_dns/templates/knot.conf.j2 diff --git a/roles/auth-dns/templates/netplan-disable-ra.yaml b/roles/auth_dns/templates/netplan-disable-ra.yaml similarity index 100% rename from roles/auth-dns/templates/netplan-disable-ra.yaml rename to roles/auth_dns/templates/netplan-disable-ra.yaml diff --git a/roles/auth-dns/templates/zone.j2 b/roles/auth_dns/templates/zone.j2 similarity index 100% rename from roles/auth-dns/templates/zone.j2 rename to roles/auth_dns/templates/zone.j2