# Issue with replace module not working with first block insert

**URL:** <https://forum.ansible.com/t/issue-with-replace-module-not-working-with-first-block-insert/26789>\
**Category:** Ansible Project\
**Created:** [February 19, 2018, 4:17pm UTC](https://forum.ansible.com/t/issue-with-replace-module-not-working-with-first-block-insert/26789 "2018-02-19T16:17:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dave](https://avatars.discourse-cdn.com/v4/letter/d/ee7513/32.png) [@Dave](https://forum.ansible.com/u/Dave)\
**Post date:** [February 19, 2018, 4:17pm UTC](https://forum.ansible.com/t/issue-with-replace-module-not-working-with-first-block-insert/26789/1 "2018-02-19T16:17:06Z")

</div>

My Ansible playbook has an issue where the replace module is not working with my first ‘blockinfile’ insert. It works fine with all the subsequent inserts. Is this a known issue?
