title: Failed to change ownership of the temporary files Ansible needs to create despite connecting as a privileged user
body: <p>I am new to awx i use pre-exsisting playbook when i run it from ubuntu 20 <code>terminal</code> it works fine but i want to run it through <code>awx</code> when i run it from awx i get this error.</p>
  <blockquote>
  <p>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`</p>
  </blockquote>
  <p>I install nextcloud from blog and i use these two commands at the end.</p>
  <pre><code>chown -R www-data:www-data /var/www/html/nextcloud
  chmod -R 775 /var/www/html/nextcloud
  </code></pre>
  <p>the task where it throw error is this:</p>
  <pre><code>---
  # tasks file for upgrade-nextcloud
  
  - name: &quot;[NC-Upgrade] - Get current version.&quot;
    become_user: &quot;{{ nextcloud_websrv_user }}&quot;
    command: php occ status --output=json
    args:
      chdir: &quot;{{ nextcloud_webroot }}&quot;
    register: nc_current_version
    changed_when: false
  </code></pre>
  <p>where <code>become_user: &quot;{{ nextcloud_websrv_user }}&quot;</code> is <code>www-data</code>. When i run it <code>become_user: root</code> then it say <code>/var/www/html/nextcloud</code> directory not found.</p>
  <p>Do i need to mount the directory <code>/var/www/html/nextcloud</code> in <code>awx_web</code> container if i run it as a root.</p>