Re: [ansible-project] How to access group variables of the same host in different groups?

2020-05-20 Thread Brian Coca
They don't exist outside inventory, all variables are either per host or per play object, inventory always gets flattened to the host, so if a host is part of 2 groups and both have the same variable, you will only get 1 value

[ansible-project] How to access group variables of the same host in different groups?

2020-05-20 Thread Durai Arasan
This is my ansible inventory file: [slurm_master] slurm-gpu-0 ansible_host=192.168.0.24 ansible_connection=local [slurm_compute] slurm-gpu-1 ansible_host=192.168.0.200 cpus=16 gpus=2 slurm-gpu-2 ansible_host=192.168.0.124 cpus=1 gpus=0 [slurm_partition_gpu]