# find module not matching something that is present

**URL:** <https://forum.ansible.com/t/find-module-not-matching-something-that-is-present/27658>\
**Category:** Ansible Project\
**Tags:** ansible-project\
**Created:** [May 29, 2018, 9:35pm UTC](https://forum.ansible.com/t/find-module-not-matching-something-that-is-present/27658 "2018-05-29T21:35:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jean-yves](https://avatars.discourse-cdn.com/v4/letter/j/a587f6/32.png) [@jean-yves](https://forum.ansible.com/u/jean-yves)\
**Post date:** [May 29, 2018, 9:35pm UTC](https://forum.ansible.com/t/find-module-not-matching-something-that-is-present/27658/1 "2018-05-29T21:35:14Z")

</div>

It works at it should  
You probably want to put patterns="^CentOS.\*\.repo" with a point to  
represent any character... (not tested)  
Your regex match a repetition of S

Be careful that these files will came back when upgrading with yum the  
package "centos-release"...  
Perhaps it should be better to add lines in these files to deactivate  
these repos instead

Regards,
