Closed dmp1ce closed 6 years ago
I can't reproduce it, were you able to identify the cause of it?
I'm getting the error from a Vagrant configuration. I'm working a a simple example to show you. The Vagrant box I am using is archlinux/archlinux
.
I was able to get this message after running on a Vagrant machine which already had Trizen installed.
TASK [Install trizen] **********************************************************
[WARNING]: Module remote_tmp /home/aur_builder/.ansible/tmp did not exist and
was created with a mode of 0700, this may cause issues when running as another
user. To avoid this, create the remote_tmp dir with the correct permissions
manually
ok: [default] => {"changed": false, "helper": "makepkg", "msg": "package(s) already installed", "rc": 0}
I was using the python2 interpreter. I think that was causing the issue for me. Try setting python interpreter with ansible_python_interpreter: /usr/bin/python2
and see if you can reproduce.
Which version of Python should be used with Ansible? 2 or 3?
Since Arch switched a few months ago Ansible to Python 3, this is what I use and recommend. You may want to use this module with version 2 and submit some PR to improve compatibility with Python 2, I will accept them.
I think it will be easier for me to switch to using Python 3. If I cannot do that then I will work on Python 2 support.
Not able to reproduce it and no intention to maintain compatibility with Python 2
No problem. I was overriding some python paths so it was probably an issue I created.
I am using the install trizen example in a role called aur_builder here:
and I'm getting the following error.
Am I missing something or is this a new bug?
My version of ansible is: