From 122625e8a782612a34264dc5fabe388445eece6a Mon Sep 17 00:00:00 2001
From: Juraj Paluba <492988@mail.muni.cz>
Date: Fri, 11 Feb 2022 13:42:42 +0100
Subject: [PATCH] Resolve "Configure user-access for user accessible nodes"

---
 provisioning/playbook.yml | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/provisioning/playbook.yml b/provisioning/playbook.yml
index 5df8ace..f73a685 100644
--- a/provisioning/playbook.yml
+++ b/provisioning/playbook.yml
@@ -188,6 +188,7 @@
 
   roles:
     - role: kypo-user-access
+      kypo_user_access_username: kypo-user
       kypo_user_access_ssh_public_key_options: 'restrict,port-forwarding,command="/usr/sbin/nologin"'
 
 - name: User and management access on KYPO Proxy
@@ -241,6 +242,18 @@
           force: yes
       when: not user_access_present and not other_users_from_pool_exists
 
+- name: Configure user access for user accessible hosts
+  hosts: user_accessible_nodes
+  strategy: free
+  gather_facts: false
+  become: true
+  become_user: root
+
+  roles:
+    - role: kypo-user-access
+      kypo_user_access_username: kypo-user
+      kypo_user_access_passwod: kypo-password
+
 - name: check the connection with virtual machines through winrm protocol
   hosts: winrm_nodes
 #  strategy: free
-- 
GitLab