From 95f55ea24e2541e00ce561936950052cff5c520b Mon Sep 17 00:00:00 2001 From: Andrew Schoen Date: Fri, 14 Aug 2015 11:47:23 -0500 Subject: [PATCH] testnode: make teuthology_user passwordless Signed-off-by: Andrew Schoen --- roles/testnode/tasks/user.yml | 7 +++++++ 1 file changed, 7 insertions(+) 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: