I am new to awx i use pre-exsisting playbook when i run it from ubuntu 20 terminal it works fine but i want to run it through awx when i run it from awx i get this error.
Failed to change ownership of the temporary files Ansible needs to create despite connecting as a privileged user. Unprivileged become user would be unable to read the file
I install nextcloud from blog and i use these two commands at the end.
chown -R www-data:www-data /var/www/html/nextcloud
chmod -R 775 /var/www/html/nextcloud
the task where it throw error is this:
— # tasks file for upgrade-nextcloud
- name: “[NC-Upgrade] - Get current version.”
become_user: “{{ nextcloud_websrv_user }}”
command: php occ status --output=json
args:
chdir: “{{ nextcloud_webroot }}”
register: nc_current_version
changed_when: false
where become_user: “{{ nextcloud_websrv_user }}” is www-data.
please help me regarding this error as i am unable to solve from last 2 days.