]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
Run ansible-managed playbook as cm user 422/head
authorDavid Galloway <dgallowa@redhat.com>
Fri, 16 Nov 2018 21:45:17 +0000 (16:45 -0500)
committerDavid Galloway <dgallowa@redhat.com>
Tue, 20 Nov 2018 16:11:11 +0000 (11:11 -0500)
The ubuntu (teuthology_user) doesn't get created until the testnode
playbook gets run

Signed-off-by: David Galloway <dgallowa@redhat.com>
ansible_managed.yml

index f42a8f24c7a39eea8bab694b0e7dcbe2d5783b0f..102cb73f8875ea0e89c6e3f7943b0ce836999c11 100644 (file)
@@ -3,10 +3,10 @@
 # sudoer settings needed for ansible to manage a node.
 - hosts: all
   strategy: free
-  # assuming the nodes we run this on will most likely
-  # have an ubuntu user already created.
+# this used to be set to ubuntu but the {{ cm_user }} is the only
+# user that gets created during kickstart
   vars:
-    ansible_ssh_user: ubuntu
+    ansible_ssh_user: "{{ cm_user }}"
   roles:
     - ansible-managed
   become: true