# Issue with "insertafter"

**URL:** <https://forum.ansible.com/t/issue-with-insertafter/15415>\
**Category:** Ansible Project\
**Created:** [June 5, 2014, 8:28pm UTC](https://forum.ansible.com/t/issue-with-insertafter/15415 "2014-06-05T20:28:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adam\_Morris](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@Adam\_Morris](https://forum.ansible.com/u/Adam_Morris)\
**Post date:** [June 5, 2014, 8:28pm UTC](https://forum.ansible.com/t/issue-with-insertafter/15415/1 "2014-06-05T20:28:53Z")

</div>

I think that your problem is that you have both regexp and insertafter. I would get rid of the regexp and add state=present (just to make it clear that I want that file to be there).

Adam
