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

main
Sven Geboers 1 month ago
parent 57083e496d
commit 8579da68bd
  1. 8
      ansible/deploy.yaml

@ -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

Loading…
Cancel
Save