disable host key checking when installing galaxy roles/collections

see: https://github.com/ansible/awx/issues/5947
This commit is contained in:
Ryan Petrello
2020-03-30 17:00:22 -04:00
parent e9d11be680
commit 140dbbaa7d

View File

@@ -144,6 +144,7 @@
changed_when: "'was installed successfully' in galaxy_result.stdout"
environment:
ANSIBLE_FORCE_COLOR: false
GIT_SSH_COMMAND: "ssh -o StrictHostKeyChecking=no"
when: roles_enabled|bool
tags:
@@ -165,6 +166,7 @@
environment:
ANSIBLE_FORCE_COLOR: false
ANSIBLE_COLLECTIONS_PATHS: "{{ collections_destination }}"
GIT_SSH_COMMAND: "ssh -o StrictHostKeyChecking=no"
when:
- "ansible_version.full is version_compare('2.8', '>=')"