bootstrap-bridge: use hostname for play

The idea with this role is to install the root key from the on-disk
RSA secret.  However, when this play runs against localhost it doesn't
match the host-variable defined root_rsa_key.

This is being run nested -- the executor Ansible task has forked the
Ansible we have installed on the bridge which is now installing this.
"connection: local" does what we want here -- it makes ansible assume
bridge.openstack.org is 127.0.0.1 -- which it is -- and avoids us
having to worry about the bootstrap ssh-ing back to itself.

This is a fixup for Iebaeed5028050d890ab541818f405978afd60124

Change-Id: I4cdcc373d1b7b6fa542a78c9f84067c79352d2f6
This commit is contained in:
Ian Wienand 2022-10-19 16:29:22 +11:00
parent 130df628ff
commit a481cb1be2
No known key found for this signature in database

View File

@ -1,4 +1,4 @@
- hosts: localhost
- hosts: bridge.openstack.org
connection: local
tasks:
- name: Install root keys