2 - name: Prepare infrastructure and create operation instances
7 - openstack/create_devstack_network
8 - openstack/create_devstack_securitygroup
9 - openstack/create_devstack_keypair
10 - role: openstack/create_devstack_hosts
11 hosts: "{{ operation.hosts }}"
13 - name: Create cluster operator access keypair
17 - name: Wait for system to become reachable
19 - name: Generate an OpenSSH keypair with the default values (4096 bits, rsa)
20 community.crypto.openssh_keypair:
21 path: "~/.ssh/{{ keypair.name }}"
23 - name: Create cluster instances
28 - role: openstack/create_devstack_hosts
29 hosts: "{{ cluster.hosts }}"
30 operator_key: "{{ hostvars['operator0']['key']['public_key'] }}"
31 - name: Create cluster operator access information
35 - name: Add cluster hostnames to /etc/hosts file
38 line: "{{ item.value + ' ' + item.key }}"
40 loop: "{{ lookup('dict', hostvars['localhost']['hosts_dict']) }}"