Commit ec3284cc by Fred Smith Committed by David Baumgold

replace geturl with a shell out to curl - to fix broken certificate management

parent bfb28f7b
......@@ -115,10 +115,16 @@
# won't update if they haven't changed on the github
# side
- name: copy github key[s] to .ssh/authorized_keys2
get_url: >
url=https://github.com/{{ item.name }}.keys
force=yes
dest=/home/{{ item.name }}/.ssh/authorized_keys2 mode=0640
shell: >
curl https://github.com/{{ item.name }}.keys -o /home/{{ item.name }}/.ssh/authorized_keys2
sudo_user: "{{ item.name }}"
when: item.github is defined and item.get('state', 'present') == 'present'
with_items: user_info
- name: set permissions on .ssh/authorized_keys2
file: >
dest=/home/{{ item.name }}/.ssh/authorized_keys2
mode=0640
owner={{ item.name }}
when: item.github is defined and item.get('state', 'present') == 'present'
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