lineinfile module replace correctly for the first time run the playbook, but not the second time
12 views
Skip to first unread message
lee lyly
unread,
Oct 20, 2016, 1:01:29 PM10/20/16
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
Below is the sample of the lineinfile module that I used. The first time run the playbook, it successfully change the line with the new line. However, after I run one more time the playbook, it still add the line at the bottom of the file.