mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 03:32:12 +00:00
cleaner Ansible output
This commit is contained in:
parent
71cb3ec713
commit
8d58b1cfbb
1 changed files with 5 additions and 5 deletions
|
@ -32,24 +32,24 @@
|
|||
|
||||
# backup=yes
|
||||
|
||||
- name: edit the sudoers file--first make it editable
|
||||
- name: Edit the sudoers file -- first make it editable
|
||||
shell: chmod 0640 /etc/sudoers
|
||||
|
||||
- name: have sudo log all commands it handles
|
||||
- name: Have sudo log all commands it handles
|
||||
lineinfile: regexp=logfile
|
||||
line='Defaults logfile = /var/log/sudo.log'
|
||||
state=present
|
||||
dest=/etc/sudoers
|
||||
|
||||
- name: lets wheel sudo without password
|
||||
- name: Lets wheel sudo without password
|
||||
lineinfile:
|
||||
line: "%wheel ALL= NOPASSWD: ALL"
|
||||
dest: /etc/sudoers
|
||||
|
||||
- name: remove the line which requires tty
|
||||
- name: Remove the line which requires tty
|
||||
lineinfile: regexp=requiretty
|
||||
state=absent
|
||||
dest=/etc/sudoers
|
||||
|
||||
- name: end editing the sudoers file-- protect it again
|
||||
- name: End editing the sudoers file -- protect it again
|
||||
shell: chmod 0440 /etc/sudoers
|
||||
|
|
Loading…
Reference in a new issue