From fd09da131991a99a886dd0c65969d30d81499511 Mon Sep 17 00:00:00 2001 From: Markos Chandras Date: Mon, 25 Jun 2018 12:17:31 +0100 Subject: [PATCH] xci: playbooks: manage-ssh-keys: Create regular user and SSH keys 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 --- xci/playbooks/manage-ssh-keys.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/xci/playbooks/manage-ssh-keys.yml b/xci/playbooks/manage-ssh-keys.yml index ff797aad..999215d8 100644 --- a/xci/playbooks/manage-ssh-keys.yml +++ b/xci/playbooks/manage-ssh-keys.yml @@ -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 -- 2.16.6