From: Andrew Schoen Date: Fri, 14 Aug 2015 16:47:23 +0000 (-0500) Subject: testnode: make teuthology_user passwordless X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=95f55ea24e2541e00ce561936950052cff5c520b;p=ceph-cm-ansible.git testnode: make teuthology_user passwordless Signed-off-by: Andrew Schoen --- diff --git a/roles/testnode/tasks/user.yml b/roles/testnode/tasks/user.yml index 1cdeee47..401e154c 100644 --- a/roles/testnode/tasks/user.yml +++ b/roles/testnode/tasks/user.yml @@ -22,6 +22,13 @@ # If we're currently running as teuthology_user, we won't be able to modify # the account when: teuthology_user != ansible_ssh_user + register: teuthology_user_existence + +# If the teuthology_user was just created, delete its password +- name: Delete the teuthology users password. + command: "passwd -d {{ teuthology_user }}" + when: teuthology_user_existence is defined and + teuthology_user_existence|changed - name: Add a user for xfstests to test user quotas. user: