How can i override variable value only for a host via extra-vars supplied through command line

7 views
Skip to first unread message

ishan jain

unread,
Sep 5, 2016, 6:02:18 AM9/5/16
to Ansible Project
Suppose i have this var defined in my inventory file:


[group10
host1
host2
host3

[group1:vars]
source=/opt/config/

And my target hosts are a group of 3 or more servers. Now while invoking the playbook, i would like to override the value of 'source' variable only for a single host, say host2. Which inbuilt hostvar should i override for this ?
Reply all
Reply to author
Forward
0 new messages