4 - name: Copy all files to undercloud
6 src: "{{ apex_temp_dir }}/{{ item }}"
7 dest: "/home/stack/{{ item }}"
12 - network-environment.yaml
14 - overcloud-full.qcow2
16 - virtual-environment.yaml
17 - baremetal-environment.yaml
18 - "{{ apex_env_file }}"
19 - name: Copy network data to undercloud
21 src: "{{ apex_temp_dir }}/network_data.yaml"
22 dest: "/home/stack/network_data.yaml"
26 when: os_version != 'ocata'
28 src: "{{ apex_temp_dir }}/storage-environment.yaml"
29 dest: /usr/share/openstack-tripleo-heat-templates/environments/storage-environment.yaml
34 name: openstack-swift-proxy
38 - name: Remove Ceph OSD from ceph storage role
40 path: /usr/share/openstack-tripleo-heat-templates/roles_data.yaml
41 line: ' - OS::TripleO::Services::CephOSD'
46 - name: Insert Ceph OSDs into Compute role
48 path: /usr/share/openstack-tripleo-heat-templates/roles_data.yaml
49 insertbefore: '^\s*-\sOS::TripleO::Services::NovaCompute$'
50 line: ' - OS::TripleO::Services::CephOSD'
54 - name: Upload glance images
55 shell: "{{ stackrc }} && openstack overcloud image upload"
58 - name: Import inventory (baremetal)
59 shell: "{{ stackrc }} && openstack overcloud node import instackenv.json"
61 - name: Introspect inventory (baremetal)
62 shell: "{{ stackrc }} && openstack overcloud node introspect --all-manageable --provide"
64 - name: Import inventory (virtual)
65 shell: "{{ stackrc }} && openstack overcloud node import --provide instackenv.json"
68 shell: '{{ stackrc }} && openstack flavor set --property "cpu_arch"="{{ ansible_architecture }}" {{ item }}'
73 - name: Configure DNS server for ctlplane network
74 shell: "{{ stackrc }} && openstack subnet set ctlplane-subnet {{ dns_server_args }}"
76 - name: Execute Overcloud Deployment
77 shell: "{{ stackrc }} && bash deploy_command"
79 - name: Show overcloud failures
80 shell: "{{ stackrc }} && openstack stack failures list overcloud --long"
81 - name: Show Keystone output
82 shell: "{{ overcloudrc }} && {{ item }}"
85 - openstack endpoint list
86 - openstack service list
87 - name: Get overcloud nodes and IPs
88 shell: "{{ stackrc }} && openstack server list -f json"
90 - name: Write nova list output to file
91 local_action: copy content="{{ nova_list.stdout }}" dest="{{ apex_temp_dir }}/nova_output"
92 - name: Fetch overcloudrc
94 src: /home/stack/overcloudrc
95 dest: "{{ apex_temp_dir }}/"