zuul-jobs/playbooks/multinode/pre.yaml
OpenDev Sysadmins 17c10c9f1d OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:25:30 +00:00

31 lines
817 B
YAML

- name: Configure a multi node environment
hosts: all
tasks:
# TODO: Add groups['all'] | length > 1 conditional when the truncated JSON
# issue is resolved, see:
# - https://github.com/ansible/ansible/issues/30385
# - https://review.opendev.org/#/c/504238/
- name: Set up multi-node known hosts
include_role:
name: multi-node-known-hosts
- name: Set up multi-node hosts file
include_role:
name: multi-node-hosts-file
- name: Set up multi-node firewall
include_role:
name: multi-node-firewall
- name: Configure multi-node networking switch and peer nodes
hosts:
- switch
- peers
roles:
- multi-node-bridge
- name: Copy the build ssh key to authorized_keys on all hosts for root
hosts: all
roles:
- copy-build-sshkey