How to override a role default dictionary variable value from command line
22 views
Skip to first unread message
Ajay B
unread,
Aug 5, 2016, 1:11:29 PM8/5/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ansible Project
I have in a role(A) a dictionary variable defined under defaults as follows : ceph_disks: /dev/vdb: "/es1"
This role A is being included in another role B thru dependencies in meta file. When this role B is executed and command line argument passed thru extra vars as follows: --extra-vars="env=thor storage_type=ceph {'ceph_disks':{'/dev/vdb': 'hdfs'}}"
This value is not being overridden for default value of es1 defined earlier.