Commit 49826486 by John Jarvis

bug fixes

parent 0bd96a91
...@@ -5,7 +5,7 @@ dependencies: ...@@ -5,7 +5,7 @@ dependencies:
- name: automator - name: automator
type: restricted type: restricted
sudoers_template: '99-automator-analytics.j2' sudoers_template: '99-automator-analytics.j2'
user_authorized_keys: "{{ AS_AUTOMATOR_AUTHORIZED_KEYS }}" authorized_keys: "{{ AS_AUTOMATOR_AUTHORIZED_KEYS }}"
user_rbash_links: user_rbash_links:
- /usr/bin/sudo - /usr/bin/sudo
- /usr/bin/scp - /usr/bin/scp
......
...@@ -8,8 +8,8 @@ dependencies: ...@@ -8,8 +8,8 @@ dependencies:
- devpi - devpi
- role: user - role: user
user_info: user_info:
name: automator - name: automator
type: restricted type: restricted
sudoers_template: '99-edxapp-manage-cmds.j2' sudoers_template: '99-edxapp-manage-cmds.j2'
user_authorized_keys: "{{ EDXAPP_AUTOMATOR_AUTHORIZED_KEYS }}" authorized_keys: "{{ EDXAPP_AUTOMATOR_AUTHORIZED_KEYS }}"
when: EDXAPP_AUTOMATOR_AUTHORIZED_KEYS|length != 0 when: EDXAPP_AUTOMATOR_AUTHORIZED_KEYS|length != 0
...@@ -115,7 +115,7 @@ ...@@ -115,7 +115,7 @@
content="{{ "\n".join(item.authorized_keys) }}" content="{{ "\n".join(item.authorized_keys) }}"
dest=/home/{{ item.name }}/.ssh/authorized_keys mode=0640 dest=/home/{{ item.name }}/.ssh/authorized_keys mode=0640
owner={{ item.name }} owner={{ item.name }}
mode=0440 validate='visudo -cf %s' mode=0440
when: item.authorized_keys is defined when: item.authorized_keys is defined
with_items: user_info with_items: user_info
......
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