Zack Williams | 573bafc | 2016-02-26 16:35:42 -0700 | [diff] [blame] | 1 | --- |
| 2 | # roles/juju-user-prep/main/tasks.yml |
| 3 | |
| 4 | - name: Disable host key checking in ~/.ssh/config |
| 5 | lineinfile: |
Zack Williams | 9cdf862 | 2016-02-26 22:42:50 -0700 | [diff] [blame] | 6 | dest={{ ansible_user_dir }}/.ssh/config |
Zack Williams | 573bafc | 2016-02-26 16:35:42 -0700 | [diff] [blame] | 7 | 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 Williams | 9cdf862 | 2016-02-26 22:42:50 -0700 | [diff] [blame] | 14 | dest={{ ansible_user_dir }}/.ansible.cfg |
Zack Williams | 573bafc | 2016-02-26 16:35:42 -0700 | [diff] [blame] | 15 | |
Zack Williams | 709f11b | 2016-03-17 14:29:51 -0700 | [diff] [blame^] | 16 | |
| 17 | - name: Get public ssh key from head node ubuntu user |
| 18 | command: cat {{ ansible_user_dir }}/.ssh/id_rsa.pub |
| 19 | register: head_ssh_pubkey |
| 20 | |
| 21 | |