unbound: Convert modules to use FQCN
This commit is contained in:
parent
b24e7feaeb
commit
ad469b041c
2 changed files with 6 additions and 6 deletions
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
- name: restart unbound
|
||||
service:
|
||||
ansible.builtin.service:
|
||||
name: unbound
|
||||
state: restarted
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue