From 8d58b1cfbb2d923a5bba7274c94136b2f3fcc89c Mon Sep 17 00:00:00 2001 From: A Holt Date: Fri, 27 Oct 2017 11:44:19 -0400 Subject: [PATCH] cleaner Ansible output --- roles/iiab-admin/tasks/admin-user.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/roles/iiab-admin/tasks/admin-user.yml b/roles/iiab-admin/tasks/admin-user.yml index c08af46bc..3a72a9272 100644 --- a/roles/iiab-admin/tasks/admin-user.yml +++ b/roles/iiab-admin/tasks/admin-user.yml @@ -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