Ansible Module lineinfile

From NovaOrdis Knowledge Base
Revision as of 03:20, 19 January 2021 by Ovidiu (talk | contribs) (→‎Example)
Jump to navigation Jump to search

External

Internal

Example

- name: "Adjust Java version to {{ jdk.version }}"
  lineinfile:
    path: "{{ settings_path }}/settings.conf"
    regexp: '^JAVA_VERSION='
    line: "JAVA_VERSION={{ jdk.version }}"