# Failed to change ownership of the temporary files Ansible needs to create despite connecting as a privileged user

**URL:** <https://forum.ansible.com/t/failed-to-change-ownership-of-the-temporary-files-ansible-needs-to-create-despite-connecting-as-a-privileged-user/35506>\
**Category:** AWX Project\
**Tags:** ubuntu, awx\
**Created:** [July 14, 2021, 7:18am UTC](https://forum.ansible.com/t/failed-to-change-ownership-of-the-temporary-files-ansible-needs-to-create-despite-connecting-as-a-privileged-user/35506 "2021-07-14T07:18:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![apex\_legend](https://avatars.discourse-cdn.com/v4/letter/a/45deac/32.png) [@apex\_legend](https://forum.ansible.com/u/apex_legend)\
**Post date:** [July 14, 2021, 7:18am UTC](https://forum.ansible.com/t/failed-to-change-ownership-of-the-temporary-files-ansible-needs-to-create-despite-connecting-as-a-privileged-user/35506/1 "2021-07-14T07:18:23Z")

</div>

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.
