Re: [ansible-project] convert yaml file into jinja

2019-03-19 Thread Sebastian Meyer
On 19.03.19 03:27, federico montaldo wrote: > Hi Folks: > > I want to know if there is a way to extract from a yaml file the disk > information in order to pass it into jinja2 template. I got the following: You can access ansible_facts in a jinja2 template like you would in a playbook: {{ ansib

[ansible-project] convert yaml file into jinja

2019-03-18 Thread federico montaldo
Hi Folks: I want to know if there is a way to extract from a yaml file the disk information in order to pass it into jinja2 template. I got the following: { "ansible_facts": { "ansible_disks": [ { "bootable": false, "bus_type": "SAS", "clustered": false,