Check if it *is* defined
This commit is contained in:
parent
9467e317a7
commit
e1f200c2ba
|
@ -11,5 +11,5 @@
|
||||||
set_fact:
|
set_fact:
|
||||||
'{{fact_variable}}': '{{result.conf_dict}}'
|
'{{fact_variable}}': '{{result.conf_dict}}'
|
||||||
when:
|
when:
|
||||||
- result
|
- result.conf_dict is defined
|
||||||
- fact_variable != ''
|
- fact_variable != ''
|
||||||
|
|
|
@ -31,3 +31,11 @@
|
||||||
msg: "glance_config not set"
|
msg: "glance_config not set"
|
||||||
when:
|
when:
|
||||||
- not glance_config
|
- not glance_config
|
||||||
|
|
||||||
|
- name: Test noop
|
||||||
|
include_role:
|
||||||
|
name: 'ansible-role-k8s-tripleo'
|
||||||
|
vars:
|
||||||
|
schema:
|
||||||
|
glance::api::v1: DEFAULT.enable_glance_v1
|
||||||
|
fact_variable: 'glance_config'
|
||||||
|
|
Loading…
Reference in New Issue