Make v2 playbook class attributes inheritable

Also fixing some other become-related things
This commit is contained in:
James Cammarata
2015-03-20 14:13:51 -05:00
parent 8d8c4c0615
commit 393246fdd3
14 changed files with 152 additions and 51 deletions

View File

@@ -0,0 +1 @@
allow_duplicates: yes

View File

@@ -0,0 +1,2 @@
- debug: msg="this is test_become_r1"
- command: whoami

View File

@@ -0,0 +1,3 @@
allow_duplicates: yes
dependencies:
- test_become_r1

View File

@@ -0,0 +1,2 @@
- debug: msg="this is test_become_r2"
- command: whoami

View File

@@ -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