blob: bcc4a6f7289bd8fa0e8954322d9973f5cb7ce2d5 [file] [log] [blame]
Zack Williams573bafc2016-02-26 16:35:42 -07001---
2# roles/juju-user-prep/main/tasks.yml
3
4- name: Disable host key checking in ~/.ssh/config
5 lineinfile:
Zack Williams9cdf8622016-02-26 22:42:50 -07006 dest={{ ansible_user_dir }}/.ssh/config
Zack Williams573bafc2016-02-26 16:35:42 -07007 line="StrictHostKeyChecking no"
8 create=yes
9 mode=0600
10
11- name: Disable host key checking in ~/.ansible.cfg
12 copy:
13 src=ansible.cfg
Zack Williams9cdf8622016-02-26 22:42:50 -070014 dest={{ ansible_user_dir }}/.ansible.cfg
Zack Williams573bafc2016-02-26 16:35:42 -070015
Zack Williams709f11b2016-03-17 14:29:51 -070016- name: Get public ssh key from head node ubuntu user
17 command: cat {{ ansible_user_dir }}/.ssh/id_rsa.pub
18 register: head_ssh_pubkey
19