unbound: Convert modules to use FQCN

This commit is contained in:
Timo Makinen 2022-04-14 13:18:14 +00:00
parent b24e7feaeb
commit ad469b041c
2 changed files with 6 additions and 6 deletions

View file

@ -1,5 +1,5 @@
--- ---
- name: restart unbound - name: restart unbound
service: ansible.builtin.service:
name: unbound name: unbound
state: restarted state: restarted

View file

@ -1,22 +1,22 @@
--- ---
- name: include OS-specific variables - name: include OS-specific variables
include_vars: "{{ ansible_os_family }}.yml" ansible.builtin.include_vars: "{{ ansible_os_family }}.yml"
- name: install packages - name: install packages
package: ansible.builtin.package:
name: unbound name: unbound
state: installed state: installed
when: ansible_os_family != "OpenBSD" when: ansible_os_family != "OpenBSD"
- name: create control keys - name: create control keys
command: ansible.builtin.command:
argv: argv:
- unbound-control-setup - unbound-control-setup
creates: "{{ unbound_control_key }}" creates: "{{ unbound_control_key }}"
notify: restart unbound notify: restart unbound
- name: copy config - name: copy config
template: ansible.builtin.template:
dest: "{{ unbound_conf }}" dest: "{{ unbound_conf }}"
src: "unbound.conf.{{ inventory_hostname }}.j2" src: "unbound.conf.{{ inventory_hostname }}.j2"
mode: 0644 mode: 0644
@ -26,7 +26,7 @@
notify: restart unbound notify: restart unbound
- name: enable service - name: enable service
service: ansible.builtin.service:
name: unbound name: unbound
state: started state: started
enabled: true enabled: true