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

Solution Verified - Updated -

Issue

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: [192.168.100.1]

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: [192.168.100.1]: 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 *********************************************************************
192.168.100.1              : ok=1    changed=0    unreachable=0    failed=1

Environment

  • Ansible Tower >=3.0.x
  • Ansible Engine >=2.1.x

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
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.