OP
banderas20
Active Member
Share the permissions and ownership(user and group) of the entire directory structure of "/opt/local" and your remote user, that way I can replicate your situation. Because there is no way in hell that the stat module is the problem because I am using the same Debian version and Ansible version as you on my test system where I am running your playbook.
As for the permissions:
directory that works. Let's say /opt/local/foo
Code:
stat .
File: .
Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: fd18h/64792d Inode: 557058 Links: 4
Access: (0770/drwxrwx---) Uid: ( 853/User2) Gid: ( 850/ Group1)
Context: system_u:object_r:usr_t:s0
Access: 2024-11-06 15:24:23.973268026 +0100
Modify: 2021-03-24 10:04:25.148307347 +0100
Change: 2023-04-09 13:09:17.336998791 +0200
Birth: 2020-07-01 12:46:57.881937656 +0200
directory that doesn't work (one level below). Let's say /opt/local/foo/bar
Code:
stat .
File: .
Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: fd18h/64792d Inode: 557059 Links: 6
Access: (0770/drwxrwx---) Uid: ( 853/User2) Gid: ( 850/ Group1)
Context: system_u:object_r:usr_t:s0
Access: 2024-11-06 15:24:33.201335948 +0100
Modify: 2024-10-26 08:03:54.937978797 +0200
Change: 2024-10-26 08:03:54.937978797 +0200
Birth: 2020-07-08 09:25:39.122989991 +0200
I am running the playbook as another user (user1). But the permissions are the same for both directories to me...
Thanks!