mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
Moving samples/ out of the root into test/
Since samples/ is used for v2 testing, it fits better into the existing test/ structure.
This commit is contained in:
15
test/samples/test_become.yml
Normal file
15
test/samples/test_become.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
- hosts: all
|
||||
gather_facts: no
|
||||
remote_user: root
|
||||
roles:
|
||||
- { role: test_become_r2 }
|
||||
- { role: test_become_r2, sudo_user: testing }
|
||||
tasks:
|
||||
- command: whoami
|
||||
- command: whoami
|
||||
become_user: testing
|
||||
- block:
|
||||
- command: whoami
|
||||
- block:
|
||||
- command: whoami
|
||||
become_user: testing
|
||||
Reference in New Issue
Block a user