# How to apply ACL only if folder has really changed

**URL:** <https://forum.ansible.com/t/how-to-apply-acl-only-if-folder-has-really-changed/35491>\
**Category:** Ansible Project\
**Created:** [July 12, 2021, 2:40pm UTC](https://forum.ansible.com/t/how-to-apply-acl-only-if-folder-has-really-changed/35491 "2021-07-12T14:40:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Florent\_Loenix](https://avatars.discourse-cdn.com/v4/letter/f/a9a28c/32.png) [@Florent\_Loenix](https://forum.ansible.com/u/Florent_Loenix)\
**Post date:** [July 12, 2021, 2:40pm UTC](https://forum.ansible.com/t/how-to-apply-acl-only-if-folder-has-really-changed/35491/1 "2021-07-12T14:40:11Z")

</div>

Hello,

I have numerous folders containing a huge bunch of subfolders and files.  
For each folder, I am using ACL to configure the permission of my own user and the apache2 user (named web user).  
The web user can read recursively the entire folder, whereas it can only write on some specified folders.  
So I configured 2 tasks to do that separatly, but for each folder Ansible is applying both each time and this is taking a long.

How to configure Ansible to really do that only if necessary ?

Thank you in advance.
