Hello all,
I am new with ansible and trying to understand how, on the same server, to run a role twice with different arguments.
What I am trying to do is to install twice the same software but using a different path.
I have tried to use the host file like:
[grp1]
192.168.1.10
[grp2]
192.168.1.10
and then set the group_vars like:
group_vars/grp1:
---
install_path = '/opt/install1'
group_vars/grp2:
---
install_path = '/opt/install2'
The problem is that my playbook always get "install_path = '/opt/install1'" not matter if I only include only grp2.
Any idea to solve this issue?
Regards,
Olivier