]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ansible: Unnecessary config for ssh user
authorDavid Galloway <dgallowa@redhat.com>
Thu, 3 Aug 2017 15:43:33 +0000 (11:43 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Tue, 22 Aug 2017 14:42:45 +0000 (10:42 -0400)
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 <dgallowa@redhat.com>
ansible/roles/ansible-jenkins/tasks/config.yml

index 4dec56289c3019344b28b912f3704be45ebdc1b3..41ef8b851a4521b7f8dea0027cfc608d2989ce97 100644 (file)
@@ -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: