Skip to content

Instantly share code, notes, and snippets.

@olbpetersson
Created December 14, 2016 10:18
Show Gist options
  • Save olbpetersson/cd57e7b342277fd6955bc3e5cb535a9a to your computer and use it in GitHub Desktop.
Save olbpetersson/cd57e7b342277fd6955bc3e5cb535a9a to your computer and use it in GitHub Desktop.
################### playbook #####################
---
- hosts: a_node
become: true
become_user: example_user
tasks:
- command: touch /tmp/removeMe.file
################### output #######################
PLAY [a_node] ***********F**************************************************
TASK [setup] *******************************************************************
fatal: [a_target]: FAILED! => {"failed": true, "msg": "Failed to set permissions on the temporary files Ansible needs to create when becoming an unprivileged user. For information on working around this, see https://docs.ansible.com/ansible/become.html#becoming-an-unprivileged-user"}
NO MORE HOSTS LEFT *************************************************************
to retry, use: --limit @touchfile.retry
PLAY RECAP *********************************************************************
a_target : ok=0 changed=0 unreachable=0 failed=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment