From: David Galloway Date: Thu, 3 Aug 2017 15:43:33 +0000 (-0400) Subject: ansible: Unnecessary config for ssh user X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6e476250db2266e5453f3806e78a96a4aa14b8d9;p=ceph-build.git 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 --- diff --git a/ansible/roles/ansible-jenkins/tasks/config.yml b/ansible/roles/ansible-jenkins/tasks/config.yml index 4dec56289..41ef8b851 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: