cinder is_metal is undefined

Check if is_metal is defined, also renaming the tasks name to reduce stress.

Change-Id: Ifcd5b4d1a99ca61cbe508d4980d063a6a9adff1a
This commit is contained in:
Marc Gariepy 2017-12-01 10:15:25 -05:00
parent 17a30dacc0
commit ce9d791291

View File

@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
- name: Destroy lxc containers except galera - name: Cinder volume config check
hosts: "cinder_volume" hosts: "cinder_volume"
gather_facts: false gather_facts: false
user: root user: root
@ -22,7 +22,7 @@
set_fact: set_fact:
in_container: true in_container: true
when: > when: >
is_metal != true or (is_metal is defined and is_metal != true) or
container_name != physical_host container_name != physical_host
- name: Check if cinder backends are LVM - name: Check if cinder backends are LVM