
This new job is a parent job allowing us to CD from Zuul via bridge.openstack.org. Using Zuul project ssh keys we add_host bridge.o.o to our running inventory on the executor then run ansible on bridge.o.o to run an ansible playbook in bridge.openstack.org:/opt/system-config/playbooks. Change-Id: I5cd2dcc53ac480459a22d9e19ef38af78a9e90f7
13 lines
340 B
YAML
13 lines
340 B
YAML
- hosts: localhost
|
|
tasks:
|
|
- name: Add bridge.o.o to inventory
|
|
add_host:
|
|
name: bridge.openstack.org
|
|
ansible_user: root
|
|
|
|
- hosts: bridge.openstack.org
|
|
tasks:
|
|
- name: Run specified playbook on bridge.o.o
|
|
command: ansible-playbook -f {{ ansible_forks }} /opt/system-config/playbooks/{{ playbook_name }}
|
|
|