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
service:
ansible.builtin.service:
name: unbound
state: restarted

View file

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