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

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -