Commit 5d57d679 by Ned Batchelder

Fix a yaml parsing change

parent 591a7b14
...@@ -61,9 +61,9 @@ ...@@ -61,9 +61,9 @@
group: "root" group: "root"
mode: "0440" mode: "0440"
validate: 'visudo -cf %s' validate: 'visudo -cf %s'
when: automated_sudoers_template when: "{{ automated_sudoers_template }}"
with_dict: "{{ AUTOMATED_USERS }}" with_dict: "{{ AUTOMATED_USERS }}"
- name: Create .ssh directory - name: Create .ssh directory
file: file:
path: "/home/{{ item.key }}/.ssh" path: "/home/{{ item.key }}/.ssh"
...@@ -72,7 +72,7 @@ ...@@ -72,7 +72,7 @@
owner: "{{ item.key }}" owner: "{{ item.key }}"
group: "{{ item.key }}" group: "{{ item.key }}"
with_dict: "{{ AUTOMATED_USERS }}" with_dict: "{{ AUTOMATED_USERS }}"
- name: Build authorized_keys file - name: Build authorized_keys file
template: template:
src: "home/automator/.ssh/authorized_keys.j2" src: "home/automator/.ssh/authorized_keys.j2"
...@@ -81,7 +81,7 @@ ...@@ -81,7 +81,7 @@
owner: "{{ item.key }}" owner: "{{ item.key }}"
group: "{{ item.key }}" group: "{{ item.key }}"
with_dict: "{{ AUTOMATED_USERS }}" with_dict: "{{ AUTOMATED_USERS }}"
- name: Build known_hosts file - name: Build known_hosts file
file: file:
path: "/home/{{ item.key }}/.ssh/known_hosts" path: "/home/{{ item.key }}/.ssh/known_hosts"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment