Hello people, so, in my environment I have a wrapper script to call ansible in order to have separate log files with different names, load python venv and run ansible in it etc.
The venv is under a different user than the user I log in, so I use to do something like that to call ansible: sudo -u tlpmgm /home/tlpmgm/ansible_wrapper/tlp_ansible_playbook > tlp_listUpdates.yml > That works fine on Ansible 2.1 and on Ansible 2.2. Because ansible is installed on a remote system, I have configured my eclipse to trigger / test my scripts remotely with something like this: ssh user1t@ansibleserver sudo -u tlpmgm /home/tlpmgm/ansible_wrapper > tlp_listUpdates.yml > That runs perfectly on Ansible 2.1 but not with Ansible 2.2! In ansible 2.2 I get the error: An exception occurred during task execution. To see the full traceback, use > -vvv. The error was: OSError: [Errno 13] Permission denied: '/home/user1' >From what I understand, ansible, for some reason, tries to create its temp folder in the user1 home folder instead of the tlpmgm user. I don't get why, since the $HOME variable after sudo is correct set for the tlpmgm user. Additionaly, I am really confused because this seem to work in Ansible 2.1 but not in Ansible 2.2... Any thoughts? -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/6ee96c02-851f-472d-bc3c-f8376ad800b6%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
