From: Zack Cerza Date: Thu, 2 Jul 2015 20:41:30 +0000 (-0600) Subject: Don't modify the teuthology_user if it is in use X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F62%2Fhead;p=ceph-cm-ansible.git Don't modify the teuthology_user if it is in use This is to work around cases where the user exists, with a different uid, and we are currently logged in as that user: msg: usermod: user ubuntu is currently logged in Signed-off-by: Zack Cerza --- diff --git a/roles/testnode/tasks/user.yml b/roles/testnode/tasks/user.yml index ae3f6851..e5b33d3d 100644 --- a/roles/testnode/tasks/user.yml +++ b/roles/testnode/tasks/user.yml @@ -19,6 +19,9 @@ groups: "{{ teuthology_user }}" shell: /bin/bash state: present + # If we're currently running as teuthology_user, we won't be able to modify + # the account + when: "{{ teuthology_user != ansible_ssh_user }}" - name: Add a user for xfstests to test user quotas. user: