1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Modifying sample for test_become to show more test cases

This commit is contained in:
James Cammarata 2015-03-23 15:20:24 -05:00
parent 095990b4d8
commit 79cf7e7292
3 changed files with 7 additions and 2 deletions

View file

@ -1 +1 @@
#allow_duplicates: yes
allow_duplicates: yes

View file

@ -1,3 +1,3 @@
#allow_duplicates: yes
allow_duplicates: yes
dependencies:
- test_become_r1

View file

@ -1,10 +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