mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
304 B
YAML
16 lines
304 B
YAML
![]()
10 years ago
|
- hosts: all
|
||
|
gather_facts: no
|
||
![]()
10 years ago
|
remote_user: root
|
||
![]()
10 years ago
|
roles:
|
||
![]()
10 years ago
|
- { role: test_become_r2 }
|
||
![]()
10 years ago
|
- { role: test_become_r2, sudo_user: testing }
|
||
![]()
10 years ago
|
tasks:
|
||
![]()
10 years ago
|
- command: whoami
|
||
![]()
10 years ago
|
- command: whoami
|
||
![]()
10 years ago
|
become_user: testing
|
||
![]()
10 years ago
|
- block:
|
||
|
- command: whoami
|
||
![]()
10 years ago
|
- block:
|
||
|
- command: whoami
|
||
|
become_user: testing
|