vhost-info: fix python2/3 path
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
parent
0c119e4a45
commit
b02b5c479b
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ else:
|
|||
hosts = ';'.join(opts.host)
|
||||
|
||||
# since the API is constructed for CLI it expects certain options to always be set in the context object
|
||||
context.CLIARGS = ImmutableDict(connection='ssh', module_path=['/usr/lib/python2.7/site-packages/ansible/modules/'], forks=25, become=None, become_method=None, become_user=None, check=False, diff=False)
|
||||
context.CLIARGS = ImmutableDict(connection='ssh', module_path=['/usr/lib/python3.6/site-packages/ansible/modules/'], forks=25, become=None, become_method=None, become_user=None, check=False, diff=False)
|
||||
|
||||
# create inventory and pass to var manager
|
||||
loader = DataLoader()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue