Fixes broken compute role update
[apex.git] / lib / ansible / playbooks / fetch_overcloud_nodes.yml
1 ---
2 - hosts: all
3   tasks:
4     - name: Get overcloud nodes and IPs
5       shell: "{{ stackrc }} && openstack server list -f json"
6       register: nova_list
7     - name: Write nova list output to file
8       local_action: copy content="{{ nova_list.stdout }}" dest="{{ apex_temp_dir }}/nova_output"
9     - name: Get ironic node information
10       shell: "{{ stackrc }} && openstack server list -f json"
11       register: ironic_list
12     - name: Write ironic list output to file
13       local_action: copy content="{{ ironic_list.stdout }}" dest="{{ apex_temp_dir }}/ironic_output"