diff --git a/ansible/deploy.yaml b/ansible/deploy.yaml index b099dc5..3401c4e 100644 --- a/ansible/deploy.yaml +++ b/ansible/deploy.yaml @@ -1,9 +1,15 @@ --- - name: deploy motief application - hosts: motief.sgeboers.nl + hosts: sgeboers.nl remote_user: webapps tasks: + - name: ensure git.sgeboers.nl is in known_hosts + ansible.builtin.known_hosts: + name: git.sgeboers.nl + key: "{{ lookup('pipe', 'ssh-keyscan git.sgeboers.nl') }}" + state: present + - name: pull latest code ansible.builtin.git: repo: git@git.sgeboers.nl:sgeboers/motief.git