From 86488896a0131b74416d0918234a206363ece522 Mon Sep 17 00:00:00 2001 From: Lili Nie Date: Aug 30 2017 05:01:55 +0000 Subject: set ansible_python_interpreter to avoid module_stderr --- diff --git a/libtaskotron/executor.py b/libtaskotron/executor.py index bdcd0bd..453db5b 100644 --- a/libtaskotron/executor.py +++ b/libtaskotron/executor.py @@ -113,6 +113,9 @@ class Executor(object): '-e', 'client_taskdir=%s' % config.get_config().client_taskdir, '-e', 'sti_inventory=%s' % sti_inventory, ] + + if self.arg_data['libvirt']: + cmd.extend(['-e', 'ansible_python_interpreter="/usr/bin/python3"']) if self.run_remotely: if self.arg_data['ssh_privkey']: