mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
Make use of yes/no booleans in playbooks
At the moment Ansible prefers yes/no for module booleans, however booleans in playbooks are still using True/False, rather than yes/no. This changes modifies boolean uses in playbooks (and man pages) to favor yes/no rather than True/False. This change includes: - Adaptation of documentation and examples to favor yes/no - Modification to manpage output to favor yes/no (the docsite output already favors yes/no)
This commit is contained in:
@@ -21,9 +21,9 @@
|
||||
{% if v.get('choices') %}
|
||||
|
||||
.IR Choices :
|
||||
{% for choice in v.get('choices',[]) %}@{ choice }@{% if not loop.last %},{%else%}.{%endif%}{% endfor %}{% endif %}
|
||||
{% for choice in v.get('choices',[]) %}{% if choice == True %}yes{%elif choice == False %}no{% else %}@{ choice }@{% endif %}{% if not loop.last %},{%else%}.{%endif%}{% endfor %}{% endif %}
|
||||
{% if v.get('required') %}(required){% endif %}
|
||||
{% if v.get('default') %} (default: @{ v.get('default') }@){% endif %}
|
||||
{% if v.get('default') %} (default: {% if v.get('default') == True %}yes{%elif v.get('default') == False %}no{% else %}@{ v.get('default') }@){% endif %}{% endif %}
|
||||
{#---------------------------------------------- #}
|
||||
{% if v.get('version_added') %}
|
||||
(Added in Ansible version @{ v.get('version_added') }@.)
|
||||
|
||||
Reference in New Issue
Block a user