From 46f0496fcf5fb29a84181ee675f4ecbb607072f9 Mon Sep 17 00:00:00 2001 From: Buzz Date: Sun, 17 Dec 2017 21:14:01 +1000 Subject: [PATCH] move pre-registration of known hosts into dependancies script, as it was sometimes failing when done in ansible. --- solo-builder/install-vagrant-deps.sh | 3 +++ solo-builder/playbook.yml | 28 ++++++++++++++-------------- 2 files changed, 17 insertions(+), 14 deletions(-) diff --git a/solo-builder/install-vagrant-deps.sh b/solo-builder/install-vagrant-deps.sh index 0b64470..6452359 100644 --- a/solo-builder/install-vagrant-deps.sh +++ b/solo-builder/install-vagrant-deps.sh @@ -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 diff --git a/solo-builder/playbook.yml b/solo-builder/playbook.yml index 046e4ab..584e8c2 100644 --- a/solo-builder/playbook.yml +++ b/solo-builder/playbook.yml @@ -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