Skip to content
Snippets Groups Projects
Commit 85100404 authored by Zdeněk Vydra's avatar Zdeněk Vydra
Browse files

Add vars for OPNsense

parent 39a4f935
No related branches found
No related tags found
No related merge requests found
- name: Reload SSH service - name: Reload SSH service
service: service:
name: sshd name: '{{ kypo_user_access_ssh_service }}'
state: reloaded state: reloaded
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
- name: enable SSH password authentication - name: enable SSH password authentication
lineinfile: lineinfile:
path: '/etc/ssh/sshd_config' path: '{{ kypo_user_access_sshd_config }}'
line: 'PasswordAuthentication yes' line: 'PasswordAuthentication yes'
regexp: '^#?PasswordAuthentication' regexp: '^#?PasswordAuthentication'
when: kypo_user_access_password is defined and kypo_user_access_password 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 - include_tasks: create_user.yml
when: kypo_user_access_present when: kypo_user_access_present
- include_tasks: remove_user.yml - include_tasks: remove_user.yml
when: not kypo_user_access_present 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