ansible/test/samples/test_become.yml

16 lines
304 B
YAML
Raw Normal View History

2015-03-13 16:57:27 +00:00
- hosts: all
gather_facts: no
remote_user: root
roles:
- { role: test_become_r2 }
- { role: test_become_r2, sudo_user: testing }
2015-03-13 16:57:27 +00:00
tasks:
- command: whoami
2015-03-13 16:57:27 +00:00
- command: whoami
2015-03-13 20:31:20 +00:00
become_user: testing
- block:
- command: whoami
- block:
- command: whoami
become_user: testing