Hello,
I would like to change a file based on the lower case of a variable.
How do I do that?
I tried
- name: replace string in file
replace: dest='{{base_dir}}/{{lower(attribute_name)}}.file.properties'
regexp='CHANGEME' replace='{{ ansible_fqdn }}' backup=yes
I thought I would be able to do it as in Jinja but that doesn't work.
Any idea?
Antoine
--
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/d67b3aba-6a6b-49af-8584-8e21891322c6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.