Add path to custom ansible modules

This commit is contained in:
Łukasz Oleś 2015-05-29 09:07:08 +00:00
parent f161638d7f
commit 7d4ce11c02

View File

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