Skip to content

Glossary: Ansible and Server Automation

lineinfile

Also written: ansible.builtin.lineinfile

A module that makes sure one line is in a file, adding it only if missing. It is idempotent, unlike appending with shell.

Where the book teaches it

Related terms

Idempotentshell