mirror of https://github.com/ansible/ansible.git
Make v2 playbook class attributes inheritable
Also fixing some other become-related thingspull/10488/merge
parent
8d8c4c0615
commit
393246fdd3
@ -0,0 +1 @@
|
||||
allow_duplicates: yes
|
@ -0,0 +1,2 @@
|
||||
- debug: msg="this is test_become_r1"
|
||||
- command: whoami
|
@ -0,0 +1,3 @@
|
||||
allow_duplicates: yes
|
||||
dependencies:
|
||||
- test_become_r1
|
@ -0,0 +1,2 @@
|
||||
- debug: msg="this is test_become_r2"
|
||||
- command: whoami
|
@ -1,8 +1,14 @@
|
||||
- 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
|
||||
|
Loading…
Reference in New Issue