Why did my Ansible Playbook Fail with 'Operation not Permitted'?

Solution Verified - Updated -


Playbook fails on the template task with the following:

Enter passphrase for /tmp/ansible_tower_WcA7ST/credential:
Identity added: /tmp/ansible_tower_WcA7ST/credential (/tmp/ansible_tower_WcA7ST/credential)

PLAY [all] *********************************************************************

TASK [Gathering Facts] *********************************************************
ok: []

TASK [copy hello.txt using template] *******************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: OSError: [Errno 1] Operation not permitted
fatal: []: FAILED! => {"changed": true, "failed": true, "msg": "Unable to rename file: /home/ec2-user/.ansible/tmp/ansible-tmp-1501828113.14-190948302627835/source to /tmp/hello.txt: [Errno 1] Operation not permitted"}

PLAY RECAP *********************************************************************              : ok=1    changed=0    unreachable=0    failed=1


  • Ansible Tower
  • Ansible Engine

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In