Ansible Module lineinfile
Jump to navigation
Jump to search
External
Internal
Overview
The module can be used to read and write lines from text files.
Example
- name: "Adjust Java version to {{ jdk.version }}"
lineinfile:
path: "{{ settings_path }}/settings.conf"
regexp: '^JAVA_VERSION='
line: "JAVA_VERSION={{ jdk.version }}"