blob: 6e61ad34133625df9506eb2c00f42f01623f7c04 [file] [log] [blame]
---
# roles/juju-user-prep/main/tasks.yml
- name: Disable host key checking in ~/.ssh/config
lineinfile:
dest={{ ansible_user_dir }}/.ssh/config
line="StrictHostKeyChecking no"
create=yes
mode=0600
- name: Disable host key checking in ~/.ansible.cfg
copy:
src=ansible.cfg
dest={{ ansible_user_dir }}/.ansible.cfg
- name: Get public ssh key from head node ubuntu user
command: cat {{ ansible_user_dir }}/.ssh/id_rsa.pub
register: head_ssh_pubkey