unbound: ansible-lint fixes

This commit is contained in:
Timo Makinen 2022-10-30 17:14:59 +00:00
parent 52b5caf589
commit 1fb8d3b918
2 changed files with 8 additions and 8 deletions

View file

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

View file

@ -1,21 +1,21 @@
---
- name: include OS-specific variables
- name: Include OS-specific variables
ansible.builtin.include_vars: "{{ ansible_os_family }}.yml"
- name: install packages
- name: Install packages
ansible.builtin.package:
name: unbound
state: installed
when: ansible_os_family != "OpenBSD"
- name: create control keys
- name: Create control keys
ansible.builtin.command:
argv:
- unbound-control-setup
creates: "{{ unbound_control_key }}"
notify: restart unbound
notify: Restart unbound
- name: copy config
- name: Copy config
ansible.builtin.template:
dest: "{{ unbound_conf }}"
src: "unbound.conf.{{ inventory_hostname }}.j2"
@ -23,9 +23,9 @@
owner: root
group: "{{ ansible_wheel }}"
validate: "unbound-checkconf %s"
notify: restart unbound
notify: Restart unbound
- name: enable service
- name: Enable service
ansible.builtin.service:
name: unbound
state: started