fix(ansible): add git.sgeboers.nl to known_hosts before git clone

This commit is contained in:
2026-03-28 20:29:06 +01:00
parent 57083e496d
commit 8579da68bd
+7 -1
View File
@@ -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