2015-03-13 11:57:27 -05:00
|
|
|
- hosts: all
|
|
|
|
gather_facts: no
|
2015-03-23 15:20:24 -05:00
|
|
|
remote_user: root
|
2015-03-20 14:13:51 -05:00
|
|
|
roles:
|
2015-03-23 15:20:24 -05:00
|
|
|
- { role: test_become_r2 }
|
2015-03-20 14:13:51 -05:00
|
|
|
- { role: test_become_r2, sudo_user: testing }
|
2015-03-13 11:57:27 -05:00
|
|
|
tasks:
|
2015-03-23 15:20:24 -05:00
|
|
|
- command: whoami
|
2015-03-13 11:57:27 -05:00
|
|
|
- command: whoami
|
2015-03-13 15:31:20 -05:00
|
|
|
become_user: testing
|
2015-03-23 15:20:24 -05:00
|
|
|
- block:
|
|
|
|
- command: whoami
|
2015-03-17 10:35:24 -05:00
|
|
|
- block:
|
|
|
|
- command: whoami
|
|
|
|
become_user: testing
|