Groups
Groups
Sign in
Groups
Groups
Ansible Project
Conversations
About
Send feedback
Help
<built-in method replace of AnsibleUnsafeText object at 0x7fec9aea8c50>
65 views
Skip to first unread message
Tony Wong
unread,
May 12, 2022, 11:33:58 AM
5/12/22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ansible Project
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?
Reply all
Reply to author
Forward
0 new messages