Hi can someone please explain why the following two seperate 'set_fact's
work.
- name : combine network and wildcard
set_fact:
net_mask: "{{ '{{network}}/{{wildcard}}' }}"
when: ansible_network_os == 'asa'
- name : determine netmask from wildcard
set_fact:
mynetmask: "{{ net_mask |ipaddr('netmask') }}"
when: ansible_network_os == 'asa'
But this 'combined' effort doesn't work
- name : determine netmask from network and wildcard
set_fact:
mynetmask : "{{ '{{network}}/{{wildcard}}' |ipaddr('netmask') }}"
when: ansible_network_os == 'asa'
I'm trying to understand the limitations of set_facts.
Cheers.
--
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/06b5928f-8344-4489-99bf-e28be7feab04%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.