summaryrefslogtreecommitdiffstats
path: root/lib/ansible/playbooks/fetch_overcloud_nodes.yml
blob: bcb5f0f639eb6a6a60994926fa7e65aa1181b10d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
---
- hosts: all
  tasks:
    - name: Get overcloud nodes and IPs
      shell: "{{ stackrc }} && openstack server list -f json"
      register: nova_list
    - name: Write nova list output to file
      local_action: copy content="{{ nova_list.stdout }}" dest="{{ apex_temp_dir }}/nova_output"
    - name: Get ironic node information
      shell: "{{ stackrc }} && openstack server list -f json"
      register: ironic_list
    - name: Write ironic list output to file
      local_action: copy content="{{ ironic_list.stdout }}" dest="{{ apex_temp_dir }}/ironic_output"