Discreet IT

Your Information. Protected. Navigation
  • Ansible
  • Ansible
The Blog lineinfile

Tag Archive

Below you'll find a list of all posts that have been tagged as “lineinfile”

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