review: loop with bare variable name

This commit is contained in:
doteast 2017-01-31 17:56:14 +00:00
parent 0456dd002c
commit 18db24b23e
3 changed files with 4 additions and 3 deletions

View file

@ -236,7 +236,7 @@
- name: fetch file list
fetch: src={{item}} dest=/{{datadir_prfx_path}}/{{inventory_hostname}}-{{timestamp.stdout}}/ flat=true
with_items: file_list.stdout_lines
with_items: "{{file_list.stdout_lines}}"
changed_when: False

View file

@ -56,7 +56,7 @@
- name: Run update-dns on each nameserver
command: /usr/local/bin/update-dns
delegate_to: "{{item}}"
with_items: groups.dns
with_items: "{{groups.dns}}"
when: nodns is not defined or not "true" in nodns
- name: Wait for dns to percolate (1 minute)

View file

@ -63,7 +63,8 @@
- name: add root keys for sysadmin-main and other allowed users
authorized_key: user=root key="{{ item }}"
with_lines: "/srv/web/infra/ansible/scripts/auth-keys-from-fas @sysadmin-main {{ root_auth_users }}"
with_lines:
- "/srv/web/infra/ansible/scripts/auth-keys-from-fas @sysadmin-main {{ root_auth_users }}"
tags:
- config
- sshkeys