Skip to content

Glossary: Passwords, Automation and AI in Security Operations

lineinfile

Also written: ansible.builtin.lineinfile

An Ansible module that makes sure a given line is in a file, using a regexp to find the line to replace. A different module, ansible.builtin.file, makes sure a file or folder exists and sets its permission mode.

Where the book teaches it

Related terms

Ansibleregexpfile permission modes (0750, 0600)