Including json vars in an Ansible role -


i have ansible structure in following form:

roles\   setup\     tasks\         main.yml     vars\       values.json       main.yml 

i'm trying include values in values.json in main.yml of vars, everytime try include file,

error! vars/main.yml file role 'setupfirewall' must contain dictionary of variables 

i want don't have include values.json in task uses it.

is there easy way this? or have include json file in every task uses values?


Comments

Popular posts from this blog

angular - DownloadURL return null in below code -

meteor - inserting data to database gives error "insert failed: Method '/texts/insert' not found" -