mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-25 11:01:09 +00:00
Merge pull request #91 from sjtstg/ansible-play-fix
fix ansible support when multi stage plays are in playbook
This commit is contained in:
commit
189ba525d3
@ -173,9 +173,11 @@ if __name__ == '__main__':
|
||||
os.chdir(os.path.dirname(sys.argv[2]))
|
||||
if isinstance(plays, dict):
|
||||
plays = [plays]
|
||||
taskman = TaskQueueManager(inventory=invman, loader=loader, passwords={},
|
||||
variable_manager=varman, stdout_callback=ResultsCollector())
|
||||
|
||||
for currplay in plays:
|
||||
taskman = TaskQueueManager(inventory=invman, loader=loader, passwords={},
|
||||
variable_manager=varman, stdout_callback=ResultsCollector())
|
||||
|
||||
currplay['hosts'] = sys.argv[1]
|
||||
if 'become' in currplay and 'become_user' not in currplay:
|
||||
del currplay['become']
|
||||
|
Loading…
Reference in New Issue
Block a user