d4ee2b5dc6
After fixing the copy-build-sshkey role, using it again in
multinode job pre.
This reverts commit ace4db4b04
.
Change-Id: Id59216ce7dd62ff604ddf2c2c1cf27c4dca0deb0
31 lines
819 B
YAML
31 lines
819 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.openstack.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
|