Revert "infra-prod-setup-keys: drop inventory add"

This reverts commit 70827542ad.

Change-Id: Id3b9dd28b775fffd4e4c5ec43754bfc12430f6d2
This commit is contained in:
Jeremy Stanley 2021-12-02 19:18:05 +00:00
parent 70827542ad
commit 38a3a7febc
1 changed files with 11 additions and 0 deletions

View File

@ -1,5 +1,16 @@
- hosts: localhost
tasks:
- name: Add bridge.o.o to inventory
add_host:
name: bridge.openstack.org
ansible_python_interpreter: python3
ansible_user: zuul
# Without setting ansible_host directly, mirror-workspace-git-repos
# gets sad because if delegate_to localhost and with add_host that
# ends up with ansible_host being localhost.
ansible_host: bridge.openstack.org
ansible_port: 22
- name: Add bridge.o.o hostkey to known hosts
known_hosts:
name: bridge.openstack.org