Discreet IT

Your Information. Protected. Navigation
  • Ansible
  • Ansible
2018

Post Archive by Year

Below you'll find a list of all posts from 2018

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

Recent Posts

  • Using inline Jinja templates in Ansible set_fact module
  • Creating /etc/hosts using Ansible’s lineinfile module

Recent Comments

    Archives

    • November 2018
    • July 2018

    Tags

    /etc/hosts Jinja lineinfile set_fact VMware vmware_guest vmware_guest_disk_facts with_items
    • Assign a Menu

    POWERED BY THE X THEME

    Toggle the Widgetbar