Do not use litteral tab in configuration
Use "\t" instead of a litteral tab which can easily be broken. Also add a deletion of line with spaces.
This commit is contained in:
parent
57acbd6091
commit
a9ae1b57d4
|
@ -8,17 +8,26 @@
|
||||||
tags:
|
tags:
|
||||||
- sudo
|
- sudo
|
||||||
|
|
||||||
# dont't break the tab!
|
|
||||||
- name: Allow wheel group to run command as root in sudo
|
- name: Allow wheel group to run command as root in sudo
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: /etc/sudoers
|
dest: /etc/sudoers
|
||||||
insertafter: '# and set environment variables.'
|
insertafter: '# and set environment variables.'
|
||||||
line: '%wheel ALL=(ALL) SETENV: ALL'
|
line: "%wheel\tALL=(ALL) SETENV: ALL"
|
||||||
validate: 'visudo -cf %s'
|
validate: 'visudo -cf %s'
|
||||||
backup: false
|
backup: false
|
||||||
tags:
|
tags:
|
||||||
- sudo
|
- sudo
|
||||||
|
|
||||||
|
- name: Delete line with space instead of tab
|
||||||
|
lineinfile:
|
||||||
|
dest: /etc/sudoers
|
||||||
|
line: "%wheel ALL=(ALL) SETENV: ALL"
|
||||||
|
validate: 'visudo -cf %s'
|
||||||
|
backup: false
|
||||||
|
state: absent
|
||||||
|
tags:
|
||||||
|
- sudo
|
||||||
|
|
||||||
- name: Configure sudoers for evomaintenance and monitoring
|
- name: Configure sudoers for evomaintenance and monitoring
|
||||||
blockinfile:
|
blockinfile:
|
||||||
state: present
|
state: present
|
||||||
|
|
Loading…
Reference in a new issue