move pre-registration of known hosts into dependancies script, as it was sometimes failing when done in ansible.

This commit is contained in:
Buzz 2017-12-17 21:14:01 +10:00
parent 7b0e397e18
commit 46f0496fcf
2 changed files with 17 additions and 14 deletions

View File

@ -36,6 +36,9 @@ sudo apt-get --assume-yes install libffi*
sudo apt-get --assume-yes install ansible
ssh-keyscan -t rsa github.com
ssh-keyscan -t rsa bitbucket.org
#sudo pip install --upgrade pip
#sudo pip install pillow

View File

@ -29,21 +29,21 @@
- name: Git configuration
copy: src=ansible.gitconfig dest=~/.gitconfig
- name: ensure github.com is a known host
lineinfile:
dest: ~/.ssh/known_hosts
create: yes
state: present
line: "{{ lookup('pipe', 'ssh-keyscan -t rsa github.com') }}"
regexp: "^github\\.com"
#- name: ensure github.com is a known host
# lineinfile:
# dest: ~/.ssh/known_hosts
# create: yes
# state: present
# line: "{{ lookup('pipe', 'ssh-keyscan -t rsa github.com') }}"
# regexp: "^github\\.com"
- name: ensure bitbucket.org is a known host
lineinfile:
dest: ~/.ssh/known_hosts
create: yes
state: present
line: "{{ lookup('pipe', 'ssh-keyscan -t rsa bitbucket.org') }}"
regexp: "^bitbucket\\.org"
#- name: ensure bitbucket.org is a known host
# lineinfile:
# dest: ~/.ssh/known_hosts
# create: yes
# state: present
# line: "{{ lookup('pipe', 'ssh-keyscan -t rsa bitbucket.org') }}"
# regexp: "^bitbucket\\.org"
- name: create build dir
sudo: true