Commit fd45256c authored by Rafael Monnerat's avatar Rafael Monnerat

Setup the Authorized Keys

parent c4b9baad
......@@ -17,3 +17,16 @@
command: /etc/opt/netconfig.sh
when: netconfig_file.stat.exists == True
ignore_errors: True
- name: Download ssh authorized keys
get_url: url=http://10.0.2.100/authorized_keys dest=/root/.ssh/authorized_keys.download mode=755
ignore_errors: True
- name: stat /root/.ssh/authorized_keys.download
stat: path=/root/.ssh/authorized_keys.download
register: authorized_keys
- name: replace /root/.ssh/authorized_keys
copy: src=/root/.ssh/authorized_keys.download dest=/root/.ssh/authorized_keys mode=755
when: authorized_keys.stat.exists == True
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