templates: Use become: no in playbooks by default.

ansible-freeipa modules should work without superuser privileges in
most cases, and to reflect this, the module tests should avoid using
`become: yes`.

This PR change the test playbook templates to use `become: no` by
default, so only modules that require superuser privileges will need
to change this variable.
This commit is contained in:
Rafael Guterres Jeffman
2021-09-01 12:45:25 -03:00
parent ae2830319f
commit e38c34974d
8 changed files with 12 additions and 12 deletions
+4 -4
View File
@@ -45,7 +45,7 @@ Example playbook to make sure $name "NAME" is present:
---
- name: Playbook to manage IPA $name.
hosts: ipaserver
become: yes
become: no
tasks:
- ipa$name:
@@ -60,7 +60,7 @@ Example playbook to make sure $name "NAME" member PARAMETER2 VALUE is present:
---
- name: Playbook to manage IPA $name PARAMETER2 member.
hosts: ipaserver
become: yes
become: no
tasks:
- ipa$name:
@@ -78,7 +78,7 @@ Example playbook to make sure $name "NAME" member PARAMETER2 VALUE is absent:
---
- name: Playbook to manage IPA $name PARAMETER2 member.
hosts: ipaserver
become: yes
become: no
tasks:
- ipa$name:
@@ -96,7 +96,7 @@ Example playbook to make sure $name "NAME" is absent:
---
- name: Playbook to manage IPA $name.
hosts: ipaserver
become: yes
become: no
tasks:
- ipa$name:
+2 -2
View File
@@ -45,7 +45,7 @@ Example playbook to make sure $name "NAME" is present:
---
- name: Playbook to manage IPA $name.
hosts: ipaserver
become: yes
become: no
tasks:
- ipa$name:
@@ -61,7 +61,7 @@ Example playbook to make sure $name "NAME" is absent:
---
- name: Playbook to manage IPA $name.
hosts: ipaserver
become: yes
become: no
tasks:
- ipa$name:
+1 -1
View File
@@ -1,7 +1,7 @@
---
- name: ${name^} absent example
hosts: ipaserver
become: true
become: no
tasks:
- name: Ensure $name NAME is absent
+1 -1
View File
@@ -1,7 +1,7 @@
---
- name: ${name^} absent example
hosts: ipaserver
become: true
become: no
tasks:
- name: Ensure $name NAME is absent
+1 -1
View File
@@ -1,7 +1,7 @@
---
- name: ${name^} member present example
hosts: ipaserver
become: true
become: no
tasks:
- name: Ensure $name NAME is present
+1 -1
View File
@@ -1,7 +1,7 @@
---
- name: ${name^} present example
hosts: ipaserver
become: true
become: no
tasks:
- name: Ensure $name NAME is present
+1 -1
View File
@@ -1,7 +1,7 @@
---
- name: Test $name
hosts: ipaserver
become: true
become: no
tasks:
+1 -1
View File
@@ -1,7 +1,7 @@
---
- name: Test $name
hosts: ipaserver
become: true
become: no
tasks: