blockinfile - learning pains

10 views
Skip to first unread message

MarkD

unread,
Jan 23, 2017, 2:25:08 PM1/23/17
to Ansible Project
Hi,

I am trying to remove from a file a block of text defined by (start/end) the following line
#-------------------------------------------------------------

with something like this:

    blockinfile:
       dest: /etc/sudoers
       insertbefore: "#-----------------------------------------------------------------------------------"
       block: ""


Nothing happens, what am I doing wrong?

thanks
MarkD

Johannes Kastl

unread,
Jan 24, 2017, 6:50:13 AM1/24/17
to ansible...@googlegroups.com
On 23.01.17 18:12 MarkD wrote:

> Nothing happens, what am I doing wrong?

As my crystal ball is in repair, why don't you show us the complete
task and the actual error output? It's hard to guess otherwise...

Johannes

signature.asc
Reply all
Reply to author
Forward
0 new messages