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 src: "{{ apex_temp_dir }}/neutron-opendaylight-sriov.yaml"
35 dest: /usr/share/openstack-tripleo-heat-templates/environments/neutron-opendaylight-sriov.yaml
40 name: openstack-swift-proxy
44 - name: Remove Ceph OSD from ceph storage role
46 path: /usr/share/openstack-tripleo-heat-templates/roles_data.yaml
47 line: ' - OS::TripleO::Services::CephOSD'
52 - name: Insert Ceph OSDs into Compute role
54 path: /usr/share/openstack-tripleo-heat-templates/roles_data.yaml
55 insertbefore: '^\s*-\sOS::TripleO::Services::NovaCompute$'
56 line: ' - OS::TripleO::Services::CephOSD'
60 - name: Upload glance images
61 shell: "{{ stackrc }} && openstack overcloud image upload"
64 - name: Import inventory (baremetal)
65 shell: "{{ stackrc }} && openstack overcloud node import instackenv.json"
67 - name: Introspect inventory (baremetal)
68 shell: "{{ stackrc }} && openstack overcloud node introspect --all-manageable --provide"
70 - name: Import inventory (virtual)
71 shell: "{{ stackrc }} && openstack overcloud node import --provide instackenv.json"
74 shell: '{{ stackrc }} && openstack flavor set --property "cpu_arch"="{{ ansible_architecture }}" {{ item }}'
79 - name: Configure DNS server for ctlplane network
80 shell: "{{ stackrc }} && openstack subnet set ctlplane-subnet {{ dns_server_args }}"
82 - name: Execute Overcloud Deployment
83 shell: "{{ stackrc }} && bash deploy_command"
85 - name: Show overcloud failures
86 shell: "{{ stackrc }} && openstack stack failures list overcloud --long"
87 - name: Show Keystone output
88 shell: "{{ overcloudrc }} && {{ item }}"
91 - openstack endpoint list
92 - openstack service list
93 - name: Get overcloud nodes and IPs
94 shell: "{{ stackrc }} && openstack server list -f json"
96 - name: Write nova list output to file
97 local_action: copy content="{{ nova_list.stdout }}" dest="{{ apex_temp_dir }}/nova_output"
98 - name: Fetch overcloudrc
100 src: /home/stack/overcloudrc
101 dest: "{{ apex_temp_dir }}/"