Discreet IT

Your Information. Protected. Navigation
  • Ansible
  • Ansible

The Blog

post header image. some inline jinja code

Using inline Jinja templates in Ansible set_fact module

Create a complex data structure for set_fact in one pass using an Ansible inline Jinja template.

Jinjaset_factVMwarevmware_guestvmware_guest_disk_facts
Header image for the post. Shows lines of Ansible task code in an artistic manner.

Creating /etc/hosts using Ansible’s lineinfile module

A common task one might want Ansible to perform is to output a /etc/hosts file. This is trivial using Ansible’s lineinfile module.

/etc/hostslineinfilewith_items
  • Assign a Menu

POWERED BY THE X THEME

Toggle the Widgetbar