Last active
January 25, 2018 21:16
-
-
Save logan2211/f70c891173a2a1f00b65ca12753881f8 to your computer and use it in GitHub Desktop.
test playbook
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PLAY [localhost] ******************************************************************************************************************************************************************** | |
TASK [Gathering Facts] ************************************************************************************************************************************************************** | |
ok: [localhost] | |
TASK [debug] ************************************************************************************************************************************************************************ | |
ok: [localhost] => { | |
"msg": " false " | |
} | |
TASK [debug] ************************************************************************************************************************************************************************ | |
ok: [localhost] => { | |
"msg": " True " | |
} | |
TASK [debug] ************************************************************************************************************************************************************************ | |
ok: [localhost] => { | |
"msg": " True " | |
} | |
TASK [debug] ************************************************************************************************************************************************************************ | |
ok: [localhost] => { | |
"msg": " False " | |
} | |
TASK [debug] ************************************************************************************************************************************************************************ | |
ok: [localhost] => { | |
"msg": " True " | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
keystone_service_adminuri_insecure: |- | |
{% set _insecure = false %} | |
{% if keystone_service_adminuri_proto == 'https' %} | |
{% set _insecure = not (keystone_user_ssl_cert is defined or haproxy_user_ssl_cert is defined) %} | |
{% endif %} | |
{{ _insecure }} | |
generates: | |
PLAY [localhost] ******************************************************************************************************************************************************************** | |
TASK [Gathering Facts] ************************************************************************************************************************************************************** | |
ok: [localhost] | |
TASK [debug] ************************************************************************************************************************************************************************ | |
ok: [localhost] => { | |
"msg": false | |
} | |
TASK [debug] ************************************************************************************************************************************************************************ | |
ok: [localhost] => { | |
"msg": false | |
} | |
TASK [debug] ************************************************************************************************************************************************************************ | |
ok: [localhost] => { | |
"msg": false | |
} | |
TASK [debug] ************************************************************************************************************************************************************************ | |
ok: [localhost] => { | |
"msg": true | |
} | |
TASK [debug] ************************************************************************************************************************************************************************ | |
ok: [localhost] => { | |
"msg": false | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- hosts: localhost | |
vars_files: | |
- vars.yml | |
tasks: | |
- debug: | |
msg: "{{ keystone_service_adminuri_insecure }}" | |
vars: | |
keystone_service_adminuri_proto: http | |
- debug: | |
msg: "{{ keystone_service_adminuri_insecure }}" | |
vars: | |
keystone_service_adminuri_proto: https | |
keystone_user_ssl_cert: bla | |
- debug: | |
msg: "{{ keystone_service_adminuri_insecure }}" | |
vars: | |
keystone_service_adminuri_proto: https | |
haproxy_user_ssl_cert: bla | |
- debug: | |
msg: "{{ keystone_service_adminuri_insecure }}" | |
vars: | |
keystone_service_adminuri_proto: https | |
- debug: | |
msg: "{{ keystone_service_adminuri_insecure }}" | |
vars: | |
keystone_service_adminuri_proto: https | |
keystone_user_ssl_cert: bla | |
haproxy_user_ssl_cert: bla |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment