Continue to add_host here even though we do it in base-jobs
We need to add host (and possibly the ssh host key so its here too) in this playbook because the add_host from the base-jobs side is only applicable to the playbook running in base-jobs. When we start our playbook here that state is lost. Simple fix, just add_host it again. Change-Id: Iee60d04f0232500be745a7a8ca0eac4a6202063d
This commit is contained in:
parent
3748d6af1c
commit
5fa69476c4
@ -1,3 +1,23 @@
|
|||||||
|
- 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
|
||||||
|
|
||||||
|
- hosts: localhost
|
||||||
|
tasks:
|
||||||
|
- name: Add bridge.o.o hostkey to known hosts
|
||||||
|
known_hosts:
|
||||||
|
name: bridge.openstack.org
|
||||||
|
key: "bridge.openstack.org ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCxRzDkWvvVQtsLTAqAwedRWA84/42KKVdFS0QP8lZFsMpgTXUhjipJ7VcFun5gM87tnt0J71rlN+ospBh0/1wfp2jASEskUyGhXAa5xHjnJN7veUyW+AggEosK/OTunvZgf54p1sQg45Sq/uCjc0Ua0fRMOq2o5z/mgpl6rSjLOlWi9wKA/6axnUbs9w4iD5esyBQ+VcISSJOTqhAo/3UG0NwCU+6Ggwwhg0nl5iCMpQfq4A207IbJ72MkJzlQgW3edsRb5POzdZcGxkTYvVdP3kgHP4Bof3MFFZjBUMz6SuRQyNV5poysMtbtlO0SvgAJNhXr6Vn0GA9XhqFP6+HT"
|
||||||
|
|
||||||
- hosts: bridge.openstack.org
|
- hosts: bridge.openstack.org
|
||||||
tasks:
|
tasks:
|
||||||
- name: Should we run from master
|
- name: Should we run from master
|
||||||
|
Loading…
Reference in New Issue
Block a user