blob: 3dd318c89961a3382b254d1db4fffca3051e2be9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
|