I’m new to Ansible and learning a lot but I have a stupid question. I just can not quite see the answer.
I have a file
aaa
bbb
ccc
I want to add
ddd
eee
but only if it does not already exist. So I can rerun playbook without creating dups.
I’ve tried register and when.
I have tried using backrefs=yes
It is just slipping though my fingers. I’m sure this is child’s play for many of you . Please instruct…