|
|
@ -19,6 +19,7 @@
|
|
|
|
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
#
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import tempfile
|
|
|
|
import os.path
|
|
|
|
import os.path
|
|
|
|
|
|
|
|
|
|
|
|
DOCUMENTATION = '''
|
|
|
|
DOCUMENTATION = '''
|
|
|
@ -151,6 +152,7 @@ def main():
|
|
|
|
command = '%s %s' % (virtualenv, env)
|
|
|
|
command = '%s %s' % (virtualenv, env)
|
|
|
|
if site_packages:
|
|
|
|
if site_packages:
|
|
|
|
command += ' --system-site-packages'
|
|
|
|
command += ' --system-site-packages'
|
|
|
|
|
|
|
|
os.chdir(tempfile.gettempdir())
|
|
|
|
rc_venv, out_venv, err_venv = module.run_command(command)
|
|
|
|
rc_venv, out_venv, err_venv = module.run_command(command)
|
|
|
|
|
|
|
|
|
|
|
|
rc += rc_venv
|
|
|
|
rc += rc_venv
|
|
|
|