set_fact

Hi,

I am trying to create a role in which i have variable file ( main.yml) under vars folder containing

ansible-playbook --syntax-check can only check syntax on playbooks, not task files.

If you have a playbook that include the role it will check the syntax on the role.

with_items accepts a list. I don’t understand the purpose of using with_items here. You can directly set cid as {{ group1.cid }} and env as {{ group1.env }}

thank you guys…