mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
393246fdd3
Also fixing some other become-related things
14 lines
284 B
YAML
14 lines
284 B
YAML
- hosts: all
|
|
gather_facts: no
|
|
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
|