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: {{ ansible_facts['disks'][0]['size'] }} - Sebastian -- Sebastian Meyer Linux Consultant & Trainer Mail: me...@b1-systems.de B1 Systems GmbH Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537 -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/e3a5d440-c187-62ce-e22d-d56e70fd0b6f%40b1-systems.de. For more options, visit https://groups.google.com/d/optout.