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
 
 

> On 07/26/2023 6:03 PM CEST Dick Visser <[email protected]> wrote:
>  
>  
> 
> On Wed, 26 Jul 2023 at 16:53, dulhaver via Ansible Project 
> <[email protected] mailto:[email protected]> 
> wrote:
> 
> > ull 2>&1 && sleep 0'"'"''
> > <http://dvzsn-rd5097.portal.cn-mv.de> (0, b'', b'')
> > fatal: [http://dvzsn-rd5097.portal.cn-mv.de]: FAILED! => {
> >     "msg": "Failed to get information on remote file 
> > (/opt/db/postgres/install/postgresql-14.8-postgis-3.3.3-el8-ina1.tar.gz): 
> > Permission denied"
> > }
> > <http://dvzsn-rd5095.portal.cn-mv.de> (0, b'', b'')
> > fatal: [http://dvzsn-rd5095.portal.cn-mv.de]: FAILED! => {
> >     "msg": "Failed to get information on remote file 
> > (/opt/db/postgres/install/postgresql-14.8-postgis-3.3.3-el8-ina1.tar.gz): 
> > Permission denied"
> > }
> > ###########################################################################################
> > 
> > the permissions on that folder look good enough for the postgres user to 
> > write
> > 
> > > ls -l /opt/db/postgres/ | grep install
> > drwxr-x---. 2 postgres postgres  89 26. Jul 16:21 install
> > 
> > 
> > 
> > any idea what my problem may be?
> > 
>  
> 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.
>  
>  
> 
>  
> 
> --
> You received this message because you are subscribed to the Google Groups 
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> mailto:[email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/ansible-project/CAF8BbLbbz02yK4J0LmkU9igX49LN2%2B%3D2EnsCm07f4qHj4W-RoQ%40mail.gmail.com
>  
> https://groups.google.com/d/msgid/ansible-project/CAF8BbLbbz02yK4J0LmkU9igX49LN2%2B%3D2EnsCm07f4qHj4W-RoQ%40mail.gmail.com?utm_medium=email&utm_source=footer.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/62133875.276327.1690440972836%40office.mailbox.org.

Reply via email to