xci: playbooks: manage-ssh-keys: Create regular user and SSH keys 85/58985/2
authorMarkos Chandras <mchandras@suse.de>
Mon, 25 Jun 2018 11:17:31 +0000 (12:17 +0100)
committerMarkos Chandras <mchandras@suse.de>
Tue, 26 Jun 2018 15:29:05 +0000 (16:29 +0100)
We may need to perform non-root tasks on the nodes, so we should have a
regular user present as well.

Change-Id: I0b824f1875ce04fe67424fc96e754e06da53be8d
Signed-off-by: Markos Chandras <mchandras@suse.de>
xci/playbooks/manage-ssh-keys.yml

index ff797aa..999215d 100644 (file)
@@ -6,6 +6,15 @@
 # which accompanies this distribution, and is available at
 # http://www.apache.org/licenses/LICENSE-2.0
 ##############################################################################
+- name: Configure SSH key for devuser
+  user:
+    name: devuser
+    generate_ssh_key: yes
+    ssh_key_bits: 2048
+    ssh_key_comment: xci
+    ssh_key_type: rsa
+    state: present
+
 - name: Configure SSH key for root user
   user:
     name: root