]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
testnode: make teuthology_user passwordless 111/head
authorAndrew Schoen <aschoen@redhat.com>
Fri, 14 Aug 2015 16:47:23 +0000 (11:47 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Tue, 18 Aug 2015 20:44:23 +0000 (15:44 -0500)
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
roles/testnode/tasks/user.yml

index 1cdeee47bd0b39f1f186a549c94ee3fe0ca08b18..401e154c4879ae2e53c3485d3fcbff0036548eb5 100644 (file)
   # 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: