From 6acdd37cede2d6a7eed2682d27a48bc589432d9d Mon Sep 17 00:00:00 2001 From: Pig Monkey Date: Thu, 19 Sep 2019 16:18:14 -0700 Subject: [PATCH] reformat yml --- roles/unbound/tasks/main.yml | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/roles/unbound/tasks/main.yml b/roles/unbound/tasks/main.yml index 57c4ae9..0bd7d09 100644 --- a/roles/unbound/tasks/main.yml +++ b/roles/unbound/tasks/main.yml @@ -1,22 +1,33 @@ --- - name: Install Unbound - pacman: name=unbound state=present + pacman: + name: unbound + state: present - name: Download root hints - get_url: url=https://www.internic.net/domain/named.cache dest=/etc/unbound/root.hints force=yes + get_url: + url: https://www.internic.net/domain/named.cache + dest: /etc/unbound/root.hints + force: yes - name: Copy Unbound configuration file - template: src=unbound.conf.j2 dest=/etc/unbound/unbound.conf + template: + src: unbound.conf.j2 + dest: /etc/unbound/unbound.conf notify: - restart unbound - name: Enable and start Unbound - service: name=unbound.service enabled=yes state=started + service: + name: unbound.service + enabled: yes + state: started - name: Configure resolvconf to use Unbound - lineinfile: dest=/etc/resolvconf.conf - state=present - line="name_servers=127.0.0.1" + lineinfile: + dest: /etc/resolvconf.conf + state: present + line: "name_servers=127.0.0.1" - name: Push Unbound root hits update service file copy: