Add path to custom ansible modules
This commit is contained in:
parent
f161638d7f
commit
7d4ce11c02
@ -12,7 +12,7 @@ class Ansible(BaseHandler):
|
|||||||
playbook_file = self._create_playbook(resource, action_name)
|
playbook_file = self._create_playbook(resource, action_name)
|
||||||
print 'inventory_file', inventory_file
|
print 'inventory_file', inventory_file
|
||||||
print 'playbook_file', playbook_file
|
print 'playbook_file', playbook_file
|
||||||
call_args = ['ansible-playbook', '-i', inventory_file, playbook_file]
|
call_args = ['ansible-playbook', '--module-path', '/vagrant/library', '-i', inventory_file, playbook_file]
|
||||||
print 'EXECUTING: ', ' '.join(call_args)
|
print 'EXECUTING: ', ' '.join(call_args)
|
||||||
subprocess.call(call_args)
|
subprocess.call(call_args)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user