vhost-info: fix python2/3 path

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2020-06-06 11:39:51 -07:00
parent 0c119e4a45
commit b02b5c479b

View file

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