ACL - Destination not writable

Hi

We want to modify /etc/haproxy/haproxy.cfg and we have set following permission:

setfacl -m u:xxx:rwx /etc/haproxy/haproxy.cfg

If we login as xxx we can fine edit /etc/haproxy/haproxy.cfg but when run from Ansible we get this error:

failed: [myserver] => {“failed”: true, “item”: “”}
msg: Destination /etc/haproxy not writable

myserver is defined with ansible_ssh_user=xxx

We don’t get this error if we also execute this:

setfacl -m u:ami:rwx /etc/haproxy