fix(ansible): add git.sgeboers.nl to known_hosts before git clone
This commit is contained in:
+7
-1
@@ -1,9 +1,15 @@
|
|||||||
---
|
---
|
||||||
- name: deploy motief application
|
- name: deploy motief application
|
||||||
hosts: motief.sgeboers.nl
|
hosts: sgeboers.nl
|
||||||
remote_user: webapps
|
remote_user: webapps
|
||||||
|
|
||||||
tasks:
|
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
|
- name: pull latest code
|
||||||
ansible.builtin.git:
|
ansible.builtin.git:
|
||||||
repo: git@git.sgeboers.nl:sgeboers/motief.git
|
repo: git@git.sgeboers.nl:sgeboers/motief.git
|
||||||
|
|||||||
Reference in New Issue
Block a user