Did you ever figure this out? On Friday, September 23, 2016 at 6:13:44 PM UTC+1, ZillaYT wrote: > > I have a file with the following bock of text in it. I have text before > and after the text block. > > logstash: > hash: $fj;kdjjfajf;ajKFJ;dfj;dkfja;dfjFJ:LFJj;kj;lfkajs > #password is: some_pw > > > I'm trying to remove the block using this code: > > > - name: Delete existing logstash user > blockinfile: > dest: /path_to_file/foo.yml > state: absent > block: | > logstash: > hash: $fj;kdjjfajf;ajKFJ;dfj;dkfja;dfjFJ:LFJj;kj;lfkajs > #password is: some_pw > > > But the block persists. What am i missing? Thanks. >
-- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/b07e492e-564b-480f-9ace-7da0cf0fac58%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
