[ansible-project] Help with Idempotent lineinfile regex

2014-04-06 Thread Antonio Marin
Hello, I'm trying to create a lineinfile task to append a word in a line, when it's not present, like the following: # The line should start with AllowGroups # Follows an unknown length sequence of \s\w+ # It's possible to find groupN within the previous sequence, in which case the task should

Re: [ansible-project] Help with Idempotent lineinfile regex

2014-04-06 Thread Paul Durivage
-- From: Antonio Marin ama...@swissms.ch Date: Sat, Apr 5, 2014 at 9:02 AM Subject: [ansible-project] Help with Idempotent lineinfile regex To: ansible-project@googlegroups.com Hello, I'm trying to create a lineinfile task to append a word in a line, when it's not present, like the following

Re: [ansible-project] Help with Idempotent lineinfile regex

2014-04-06 Thread Tony Marin
: Sat, Apr 5, 2014 at 9:02 AM Subject: [ansible-project] Help with Idempotent lineinfile regex To: ansible-project@googlegroups.com mailto:ansible-project@googlegroups.com Hello, I'm trying to create a lineinfile task to append a word in a line, when it's not present, like the following