summaryrefslogtreecommitdiffstats
path: root/lib/ansible/playbooks/fetch_overcloud_nodes.yml
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ansible/playbooks/fetch_overcloud_nodes.yml')
-rw-r--r--lib/ansible/playbooks/fetch_overcloud_nodes.yml13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/ansible/playbooks/fetch_overcloud_nodes.yml b/lib/ansible/playbooks/fetch_overcloud_nodes.yml
new file mode 100644
index 0000000..bcb5f0f
--- /dev/null
+++ b/lib/ansible/playbooks/fetch_overcloud_nodes.yml
@@ -0,0 +1,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"