I am having issues formatting a role,  I am trying to use register:  and 
debug.  Can anyone show the the formatting for debugging roles with 
register in ansible.

This is not working in a role:

  - name: Generate Hostnames for AD Group Names
  - 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

  - debug:
     msg: "after we run our role"
      var: domain
      verbosity: 2

-- 
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/2f650145-8fdf-40b0-a2db-6368c05038ce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to