blob: bcc4a6f7289bd8fa0e8954322d9973f5cb7ce2d5 [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