Skip to content
Snippets Groups Projects
Commit e4b92cde authored by Karolína Dočkalová Burská's avatar Karolína Dočkalová Burská
Browse files

Merge branch '6-add-option-to-set-shell' into 'master'

Add option to set user shell

Closes #6

See merge request muni-kypo-crp/backend-python/ansible-networking-stage/kypo-user-access!7
parents 470b8b91 97b47d6e
No related branches found
No related tags found
No related merge requests found
......@@ -7,3 +7,4 @@ kypo_user_access_ssh_public_key_options:
kypo_user_access_password:
kypo_user_access_present: True
kypo_user_access_sudo: False
kypo_user_access_shell: '{% if ansible_distribution is defined and ansible_distribution == "Kali" %}/bin/zsh{% else %}/bin/bash{% endif %}'
- name: ensure existence of user
user:
name: '{{ kypo_user_access_username }}'
shell: /bin/bash
shell: '{{ kypo_user_access_shell }}'
- name: ensure existence of SSH directory
file:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment