Skip to content
Snippets Groups Projects
Commit 47d52111 authored by Thomas Woerner's avatar Thomas Woerner
Browse files

utils/templates/test_module*.yml.in: Better docs for become and gather_facts

The documentation for "become" and "gather_facts" has been updated to
make sure that these parameters are enabled only in new tests if it is
really needed.
parent 4a18ad03
No related branches found
No related tags found
No related merge requests found
--- ---
- name: Test $name - name: Test $name
hosts: "{{ ipa_test_host | default('ipaserver') }}" hosts: "{{ ipa_test_host | default('ipaserver') }}"
# Change "become" or "gather_facts" to "yes", # It is normally not needed to set "become" to "true" for a module test.
# if you test playbook requires any. # Only set it to true if it is needed to execute commands as root.
become: false become: false
# Enable "gather_facts" only if "ansible_facts" variable needs to be used.
gather_facts: false gather_facts: false
tasks: tasks:
......
--- ---
- name: Test $name - name: Test $name
hosts: "{{ ipa_test_host | default('ipaserver') }}" hosts: "{{ ipa_test_host | default('ipaserver') }}"
# Change "become" or "gather_facts" to "yes", # It is normally not needed to set "become" to "true" for a module test.
# if you test playbook requires any. # Only set it to true if it is needed to execute commands as root.
become: false become: false
# Enable "gather_facts" only if "ansible_facts" variable needs to be used.
gather_facts: false gather_facts: false
tasks: tasks:
......
--- ---
- name: Test ${name} - name: Test ${name}
hosts: ipaclients, ipaserver hosts: ipaclients, ipaserver
# Change "become" or "gather_facts" to "yes", # It is normally not needed to set "become" to "true" for a module test.
# if you test playbook requires any. # Only set it to true if it is needed to execute commands as root.
become: false become: false
# Enable "gather_facts" only if "ansible_facts" variable needs to be used.
gather_facts: false gather_facts: false
tasks: tasks:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment