Hi,
I have the below variable defined in my playbook.
reboot_option:
- IfRequired
- Never
- Always
while calling the same variable from the playbook , the value
"IfRequired' must be the default.
"rebootSetting": "{{ reboot_option | default(Ifrequired) }}"
While executing the playbook without extra-vars reboot_option then by
"ifrequired " need to the default,.
If the playbook is executed with -e "reboot_option=Never" or "Always" then
it should select the given option.
how to call the dictionary items with default as "Ifrequired"?
Or I have to declare the variables in a different way ?
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/90154402-8d8b-4041-8a9f-d1bbea023a6en%40googlegroups.com.