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

Merge branch '8-setting-ssh-fails-on-opnsense' into 'master'

Add vars for OPNsense

Closes #8

See merge request muni-kypo-crp/backend-python/ansible-networking-stage/kypo-user-access!9
parents 39a4f935 85100404
No related branches found
No related tags found
No related merge requests found
- name: Reload SSH service
service:
name: sshd
name: '{{ kypo_user_access_ssh_service }}'
state: reloaded
......@@ -26,7 +26,7 @@
- name: enable SSH password authentication
lineinfile:
path: '/etc/ssh/sshd_config'
path: '{{ kypo_user_access_sshd_config }}'
line: 'PasswordAuthentication yes'
regexp: '^#?PasswordAuthentication'
when: kypo_user_access_password is defined and kypo_user_access_password
......
- include_vars: "{{ ansible_os_family | default('Debian') }}.yml"
- include_tasks: create_user.yml
when: kypo_user_access_present
- include_tasks: remove_user.yml
when: not kypo_user_access_present
kypo_user_access_ssh_service: sshd
kypo_user_access_sshd_config: /etc/ssh/sshd_config
kypo_user_access_ssh_service: openssh
kypo_user_access_sshd_config: /usr/local/etc/ssh/sshd_config
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment