# escalation problem with 'copy' TASK

**URL:** <https://forum.ansible.com/t/escalation-problem-with-copy-task/38263>\
**Category:** Ansible Project\
**Created:** [July 26, 2023, 2:53pm UTC](https://forum.ansible.com/t/escalation-problem-with-copy-task/38263 "2023-07-26T14:53:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dulhaver](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/dulhaver/32/1061_2.png) [@dulhaver](https://forum.ansible.com/u/dulhaver)\
**Post date:** [July 26, 2023, 2:53pm UTC](https://forum.ansible.com/t/escalation-problem-with-copy-task/38263/1 "2023-07-26T14:53:00Z")

</div>

I have a copy TASK

---

<div class="post-metadata">

**Author:** ![dnmvisser](https://avatars.discourse-cdn.com/v4/letter/d/8e8cbc/32.png) [@dnmvisser](https://forum.ansible.com/u/dnmvisser)\
**Post date:** [July 26, 2023, 4:03pm UTC](https://forum.ansible.com/t/escalation-problem-with-copy-task/38263/2 "2023-07-26T16:03:46Z")

</div>

Permissions after all. There is a dot at the end of your permissions, which usually indicates that an SELinux context is present.  
I don’t know how that exactly works.  
In any case is it not an ansible problem but a local permissions problem.  
So make sure that is fixed, and then your ansible task will work as well.

---

<div class="post-metadata">

**Author:** ![dulhaver](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/dulhaver/32/1061_2.png) [@dulhaver](https://forum.ansible.com/u/dulhaver)\
**Post date:** [July 27, 2023, 6:56am UTC](https://forum.ansible.com/t/escalation-problem-with-copy-task/38263/3 "2023-07-27T06:56:12Z")

</div>

thx for that suggestion, however I can do this without any problem

ansible postgres -l @…/temp/limit\_agrar -m copy -a “src=…/temp/postgresql-12.15-postgis-3.2.5-el8-ina1.tar.gz dest=/opt/db/postgres/install/ mode=0644 owner=postgres group=postgres” -b --become-user=postgres

and I’d say that has the same privilege situation as my playbook

---

<div class="post-metadata">

**Author:** ![Will\_McDonald](https://avatars.discourse-cdn.com/v4/letter/w/f475e1/32.png) [@Will\_McDonald](https://forum.ansible.com/u/Will_McDonald)\
**Post date:** [July 27, 2023, 7:22am UTC](https://forum.ansible.com/t/escalation-problem-with-copy-task/38263/4 "2023-07-27T07:22:48Z")

</div>

become and become\_user: postgresis are at the wrong indentation level in the task?
