From 6e476250db2266e5453f3806e78a96a4aa14b8d9 Mon Sep 17 00:00:00 2001 From: David Galloway Date: Thu, 3 Aug 2017 11:43:33 -0400 Subject: [PATCH] ansible: Unnecessary config for ssh user Role assumes the jenkins_master target has been configured with the ceph-sepia-secrets ansible_managed and common roles. These roles create a cm user and already set up TTY-less sudo access. Signed-off-by: David Galloway --- .../roles/ansible-jenkins/tasks/config.yml | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/ansible/roles/ansible-jenkins/tasks/config.yml b/ansible/roles/ansible-jenkins/tasks/config.yml index 4dec5628..41ef8b85 100644 --- a/ansible/roles/ansible-jenkins/tasks/config.yml +++ b/ansible/roles/ansible-jenkins/tasks/config.yml @@ -8,25 +8,6 @@ backrefs: yes register: config_changed -- name: ensure TTY is disabled for admin user - lineinfile: - dest: /etc/sudoers - state: present - regexp: '^{{ ansible_ssh_user }} ALL\=' - regexp: '^Defaults requiretty' - line: '#Defaults requiretty' - validate: 'visudo -cf %s' - backrefs: yes - -- name: ensure ssh user can sudo without prompts - lineinfile: - dest: /etc/sudoers - state: present - regexp: '^{{ ansible_ssh_user }} ALL\=' - line: '%{{ ansible_ssh_user }} ALL=(ALL) NOPASSWD:ALL' - validate: 'visudo -cf %s' - backrefs: yes - - name: Configure Jenkins Prefix when: prefix is defined lineinfile: -- 2.39.5