Modifying sample for test_become to show more test cases

pull/10522/head
James Cammarata 10 years ago
parent 095990b4d8
commit 79cf7e7292

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

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

@ -1,10 +1,15 @@
- hosts: all - hosts: all
gather_facts: no gather_facts: no
remote_user: root
roles: roles:
- { role: test_become_r2 }
- { role: test_become_r2, sudo_user: testing } - { role: test_become_r2, sudo_user: testing }
tasks: tasks:
- command: whoami
- command: whoami - command: whoami
become_user: testing become_user: testing
- block:
- command: whoami
- block: - block:
- command: whoami - command: whoami
become_user: testing become_user: testing

Loading…
Cancel
Save