Im trying to use set_fact to define variables and its throwing me this
error:
ansible-playbook -i hosts -e dbname="DBAgent06_sybase_8"
my plabook has below task:
name: Set vars
set_fact:
myvar: "{% 'dbag-'+ dbname.split('_')[-1] if '_' dbname else 'dbag=' %}
##concatenate 'dbag' to 8(from dbname value else just keep it dbag.
This is not working and get above error . Any help?/
--
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/19ed60d7-8ab8-4c80-854b-c5cc4b1da1f6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.