Hi, how can i execute a ansible task only if a file contains a specfic regexp ? I was hoping to use the when: statement as follows :-
- name: do this task only if file contains fred command: some command when: file contains "fred" Can something like this work ? Thanks for any help. Pete -- 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/cd6273a1-3a1b-45c0-b6c9-54dcd4e7fa84%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
