Ugh!. Thanks
On Monday, July 6, 2015 at 4:53:59 PM UTC-4, Brian Coca wrote: > > regexp not regex is the parameter. > > On Mon, Jul 6, 2015 at 4:34 PM, Jim McMahon > <[email protected] <javascript:>> wrote: > > I have version 1.8.2 of ansible, but it's giving me this error when I > try to > > use regex with lineinfile: > > > > msg: unsupported parameter for module: regex > > > > > > Here's what I'm trying to run: > > > > > > - name: Set ASSET_VERSION to commit hash > > sudo: true > > sudo_user: "{{ app_name }}" > > lineinfile: > > dest: "{{ env_path }}/{{ app_name }}-env.{{ stage }}" > > line: "ASSET_VERSION={{ commit_hash.stdout }}" > > regex: "^ASSET_VERSION=" > > state: present > > tags: > > - design > > > > > > It will run without the regex, but not with the regex. Was regex taken > out > > of lineinfile? > > > > -- > > 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] <javascript:>. > > To post to this group, send email to [email protected] > <javascript:>. > > To view this discussion on the web visit > > > https://groups.google.com/d/msgid/ansible-project/8bac9747-cae3-4ee6-9f06-bcc848c6d151%40googlegroups.com. > > > > For more options, visit https://groups.google.com/d/optout. > > > > -- > Brian Coca > -- 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/53be511f-25b6-433f-9f22-0e4c1d9f2e55%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
