how can one possibly match value of a variable through regex parameter in lineinfile module?
- name: emptyline before search
lineinfile:
dest: ~/file
insertbefore: '^{{ search_text }}$'
line: ''
I tried above with both single/double quotes around, it doesn't seem to work
{{ search_text }}
?