Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

Commit

Permalink
Merge "Fix incorrect ansible_library path"
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins authored and openstack-gerrit committed Jan 26, 2016
2 parents 2164e76 + acaa8df commit 2681a5f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
14 changes: 10 additions & 4 deletions solar/core/handlers/ansible_playbook.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,16 @@ def action(self, resource, action):
remote_extra_vars_file = extra_vars_file.replace(
SOLAR_TEMP_LOCAL_LOCATION, '/tmp/')

call_args = ['ansible-playbook', '--module-path', '/tmp/library',
'-i', remote_inventory_file,
'--extra-vars', '@%s' % remote_extra_vars_file,
remote_playbook_file]
call_args = [
'ansible-playbook',
'--module-path',
'/tmp/ansible_library',
'-i',
remote_inventory_file,
'--extra-vars',
'@%s' % remote_extra_vars_file,
remote_playbook_file
]
log.debug('EXECUTING: %s', ' '.join(call_args))

rst = self.transport_run.run(resource, *call_args)
Expand Down
10 changes: 8 additions & 2 deletions solar/core/handlers/ansible_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,14 @@ def action(self, resource, action_name):
remote_inventory_file = inventory_file.replace(
SOLAR_TEMP_LOCAL_LOCATION, '/tmp/')

call_args = ['ansible-playbook', '--module-path', '/tmp/library',
'-i', remote_inventory_file, remote_playbook_file]
call_args = [
'ansible-playbook',
'--module-path',
'/tmp/ansible_library',
'-i',
remote_inventory_file,
remote_playbook_file
]
log.debug('EXECUTING: %s', ' '.join(call_args))

rst = self.transport_run.run(resource, *call_args)
Expand Down

0 comments on commit 2681a5f

Please sign in to comment.