When I run this pb, The line keeps getting replaced with this

<built-in method replace of AnsibleUnsafeText object at 0x7fec9aea8c50>

vars.yml

line_to_replace: "'search: 'image: jenkins/jenkins:2.332.1', replace: 
'#image: jenkins/jenkins:2.332.1''"

main.yml

- name: comment line
lineinfile:
backup: no
backrefs: yes
state: present
path: "{{ file_path }}"
regexp: "{{ exp }}"
line: '\1{{ item.replace }}'
with_items: 
- '{{ line_to_replace }}'

any idea?

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/7e9646b6-9dd9-4eae-8bb1-aedd1f32c70dn%40googlegroups.com.

Reply via email to