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: ansible.builtin.service:
name: unbound name: unbound
state: restarted 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" ansible.builtin.include_vars: "{{ ansible_os_family }}.yml"
- name: install packages - name: Install packages
ansible.builtin.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
ansible.builtin.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
ansible.builtin.template: ansible.builtin.template:
dest: "{{ unbound_conf }}" dest: "{{ unbound_conf }}"
src: "unbound.conf.{{ inventory_hostname }}.j2" src: "unbound.conf.{{ inventory_hostname }}.j2"
@ -23,9 +23,9 @@
owner: root owner: root
group: "{{ ansible_wheel }}" group: "{{ ansible_wheel }}"
validate: "unbound-checkconf %s" validate: "unbound-checkconf %s"
notify: restart unbound notify: Restart unbound
- name: enable service - name: Enable service
ansible.builtin.service: ansible.builtin.service:
name: unbound name: unbound
state: started state: started