mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-07-25 00:44:42 +00:00
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.
This commit is contained in:
@@ -1,9 +1,10 @@
|
|||||||
---
|
---
|
||||||
- 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:
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
---
|
---
|
||||||
- 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:
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
---
|
---
|
||||||
- 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:
|
||||||
|
|||||||
Reference in New Issue
Block a user