From 1fb8d3b918c1d24fa6e54b27d0aeb4f862f3b8d0 Mon Sep 17 00:00:00 2001 From: Timo Makinen Date: Sun, 30 Oct 2022 17:14:59 +0000 Subject: [PATCH] unbound: ansible-lint fixes --- roles/unbound/handlers/main.yml | 2 +- roles/unbound/tasks/main.yml | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/roles/unbound/handlers/main.yml b/roles/unbound/handlers/main.yml index 03efd4d..d82617b 100644 --- a/roles/unbound/handlers/main.yml +++ b/roles/unbound/handlers/main.yml @@ -1,5 +1,5 @@ --- -- name: restart unbound +- name: Restart unbound ansible.builtin.service: name: unbound state: restarted diff --git a/roles/unbound/tasks/main.yml b/roles/unbound/tasks/main.yml index 560a055..1f6699a 100644 --- a/roles/unbound/tasks/main.yml +++ b/roles/unbound/tasks/main.yml @@ -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