summaryrefslogtreecommitdiffstats
path: root/lib/ansible
diff options
context:
space:
mode:
authorTim Rozet <trozet@redhat.com>2018-01-29 17:16:15 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-01-29 17:16:15 +0000
commit7e365bcfc02900ca1a7da341f47aabcf3123c99f (patch)
treeef9ef6d79e21494ad35571df385b6bdd675ca9b7 /lib/ansible
parent2f43d91a340fa002ea1f03931f5209a616a11a37 (diff)
parent6856c63376f87004377f94f534389da02dc9be16 (diff)
Merge "Make introspection optional"
Diffstat (limited to 'lib/ansible')
-rw-r--r--lib/ansible/playbooks/deploy_overcloud.yml8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/ansible/playbooks/deploy_overcloud.yml b/lib/ansible/playbooks/deploy_overcloud.yml
index b2d9234a..aa3d8067 100644
--- a/lib/ansible/playbooks/deploy_overcloud.yml
+++ b/lib/ansible/playbooks/deploy_overcloud.yml
@@ -57,15 +57,13 @@
become_user: stack
- name: Import inventory (baremetal)
shell: "{{ stackrc }} && openstack overcloud node import instackenv.json"
- when: not virtual
+ when: introspect
- name: Introspect inventory (baremetal)
shell: "{{ stackrc }} && openstack overcloud node introspect --all-manageable --provide"
- when:
- - not virtual
- - not aarch64
+ when: introspect
- name: Import inventory (virtual)
shell: "{{ stackrc }} && openstack overcloud node import --provide instackenv.json"
- when: virtual
+ when: not introspect
- name: Set flavors
shell: '{{ stackrc }} && openstack flavor set --property "cpu_arch"="{{ ansible_architecture }}" {{ item }}'
with_items: