formats dont change for tasks, the problem is you are running to tasks toghether
- debug:
msg: "before we run our role"
- set_fact:
server_hostname: "{{ server_hostname }} + [ '{{
item.0.server_category + item.1.server_numbers + location.short + 'V'
}}' ]"
domain_controller_group: "{{ server_specs.0.win_domain|lower}}DC"
domain_controller: "{{
hostvars[groups[server_specs.0.win_domain|lower +
'DC'][0]]['ansible_host'] }}"
with_subelements:
- "{{ server_specs }}"
- server_numbers_subnet
register: domain
also msg and var are mutually exclusive, use one, not both.
----------
Brian Coca
--
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/CACVha7fnhfKkEdjwwqXVi%2BvwT9chTQ1U_TgXyS71_tJuiw86QQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.