Difference between revisions of "Ansible: lineinfile"

From wikieduonline
Jump to navigation Jump to search
Line 1: Line 1:
 
{{Draft}}
 
{{Draft}}
  
 
+
<pre>
 +
      - lineinfile:
 +
          path: /etc/default/sysstat
 +
          state: present
 +
          backrefs: yes
 +
          regexp: '^ENABLED="false"'
 +
          line: 'ENABLED="true"'
 +
</pre>
  
 
Examples:
 
Examples:

Revision as of 08:22, 29 April 2020

This article is a Draft. Help us to complete it.
      - lineinfile:
          path: /etc/default/sysstat
          state: present
          backrefs: yes
          regexp: '^ENABLED="false"'
          line: 'ENABLED="true"'

Examples:


Related terms

See also

Advertising: