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

php - Cannot override Laravel Spark authentication with own implementation -

What is happening when Matlab is starting a "parallel pool"? -

Qt QGraphicsScene is not accessable from QGraphicsView (on Qt 5.6.1) -