Skip to content

Commit f58d972

Browse files
committed
task: disable host key checking in ansible to suppress interactive prompt
Part of #1631 [skip ci]
1 parent 6b77f30 commit f58d972

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/provision-by-ansible.yml

+4
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ jobs:
6262

6363
- name: Run ansible
6464
working-directory: infra/vagrant
65+
env:
66+
# Disable host key checking to suppress interactive prompt.
67+
# See: https://docs.ansible.com/ansible/2.10/user_guide/connection_details.html#managing-host-key-checking
68+
ANSIBLE_HOST_KEY_CHECKING: 'False'
6569
run: ansible-playbook provisioning/prod.yml -i provisioning/prod.inventory
6670

6771
- name: Cleanup

0 commit comments

Comments
 (0)