[1] peer{{ peer_number }}.peers and [2]peer{{ peer_number
}}.peers.cluster{{ cluster }} are my 2 hosts.
NOTE: {{ peer_number }} and {{ cluster }} is there any way i can use
these both and can use in hosts: position????
my condition is
if i am passing ansible-playbook text.yml -e cluster=1 peer-number=1 [2]
host will be in use. (( peer1.peers.cluster1 ))
if i am passing ansible-playbook text.yml -e cluster=0 peer-number=1 [1]
host will be in use (( peer1.peers ))
bottom line is i want to use 2 varibles in hosts:
and want to pass only 2 argument i.e. {{ peer_number }} & {{ cluster }}
thanks
--
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/15a5c939-5120-490e-adc0-bf5f67f08673%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.