On Tue, 11 Jul 2023 20:42:30 +0100
Jorge Rúa <[email protected]> wrote:

>   loop:
>     - "{{ hostvars[inventory_hostname]['hostgroups'] }}"
> 
> TASK [ Adding servers to each respective hostgroup]
> *************************************************************************************************
> ok: [aaa -> localhost] => (item=['foobar_service_web',
> 'foobar_service_unstable']) => {

Try

  - debug:
      msg: "echo {{ inventory_hostname }} {{ item }}"
    loop: "{{ hostgroups|from_yaml }}"

-- 
Vladimir Botka

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/20230711221153.04e65fc5%40gmail.com.

Attachment: pgpN61HNffQvq.pgp
Description: OpenPGP digital signature

Reply via email to