Skip to content
Snippets Groups Projects
Commit 0cfab07c authored by Juraj Paluba's avatar Juraj Paluba
Browse files

Merge branch '26-user-access-task-fails-for-windows-machines' into 'master'

Resolve "user access task fails for windows machines"

Closes #26

See merge request muni-kypo-crp/backend-python/ansible-networking-stage/kypo-ansible-stage-one!26
parents 749cf70b 70b131a0
No related branches found
No related tags found
No related merge requests found
...@@ -13,3 +13,6 @@ ...@@ -13,3 +13,6 @@
[submodule "provisioning/roles/iptables"] [submodule "provisioning/roles/iptables"]
path = provisioning/roles/iptables path = provisioning/roles/iptables
url = https://gitlab.ics.muni.cz/CSIRT-MU-public/ansible-roles/iptables.git url = https://gitlab.ics.muni.cz/CSIRT-MU-public/ansible-roles/iptables.git
[submodule "provisioning/roles/kypo-user-access-windows"]
path = provisioning/roles/kypo-user-access-windows
url = https://gitlab.ics.muni.cz/muni-kypo-crp/backend-python/ansible-networking-stage/kypo-user-access-windows
...@@ -243,7 +243,7 @@ ...@@ -243,7 +243,7 @@
when: not user_access_present and not other_users_from_pool_exists when: not user_access_present and not other_users_from_pool_exists
- name: Configure user access for user accessible hosts - name: Configure user access for user accessible hosts
hosts: user_accessible_nodes hosts: user_accessible_nodes:&ssh_nodes
strategy: free strategy: free
gather_facts: false gather_facts: false
become: true become: true
...@@ -252,7 +252,7 @@ ...@@ -252,7 +252,7 @@
roles: roles:
- role: kypo-user-access - role: kypo-user-access
kypo_user_access_username: user kypo_user_access_username: user
kypo_user_access_password: password kypo_user_access_password: Password123
- name: check the connection with virtual machines through winrm protocol - name: check the connection with virtual machines through winrm protocol
hosts: winrm_nodes hosts: winrm_nodes
...@@ -285,6 +285,16 @@ ...@@ -285,6 +285,16 @@
dest: 'C:\Users\{{ ansible_user }}\.ssh\authorized_keys' dest: 'C:\Users\{{ ansible_user }}\.ssh\authorized_keys'
content: '{{ lookup("file", kypo_global_ssh_public_mgmt_key) }}' content: '{{ lookup("file", kypo_global_ssh_public_mgmt_key) }}'
- name: Configure user access for user accessible windows hosts
hosts: user_accessible_nodes:&winrm_nodes
gather_facts: yes
roles:
- role: kypo-user-access-windows
kypo_user_access_username: user
kypo_user_access_password: Password123
kypo_user_access_admin: True
- name: remove stack name prefix from hostnames of ssh nodes - name: remove stack name prefix from hostnames of ssh nodes
hosts: hosts:
- management - management
......
Subproject commit 7717d4e1db933fabcee8fdcca2391ab9e9aaafd7
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment