Merge pull request #2078 from huberteff/e2158b661d250c04609e7faff4d8e67df9cb37e4
Add example for adding to sudoers file
This commit is contained in:
commit
cc058e4c36
1 changed files with 1 additions and 0 deletions
|
@ -82,6 +82,7 @@ options:
|
||||||
get the original file back if you somehow clobbered it incorrectly.
|
get the original file back if you somehow clobbered it incorrectly.
|
||||||
examples:
|
examples:
|
||||||
- code: 'lineinfile: dest=/etc/selinux/config regexp=^SELINUX= line=SELINUX=disabled'
|
- code: 'lineinfile: dest=/etc/selinux/config regexp=^SELINUX= line=SELINUX=disabled'
|
||||||
|
- code: "lineinfile: \\\"dest=/etc/sudoers state=present regexp='^%wheel' line ='%wheel ALL=(ALL) NOPASSWD: ALL'\\\""
|
||||||
- code: 'lineinfile: dest=/etc/sudoers state=absent regexp="^%wheel"'
|
- code: 'lineinfile: dest=/etc/sudoers state=absent regexp="^%wheel"'
|
||||||
- code: 'lineinfile: dest=/etc/httpd/conf/httpd.conf regexp="^Listen " insertafter="^#Listen " line="Listen 8080"'
|
- code: 'lineinfile: dest=/etc/httpd/conf/httpd.conf regexp="^Listen " insertafter="^#Listen " line="Listen 8080"'
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue