1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_sshd.git synced 2024-08-16 11:59:49 +02:00

move if to template

This commit is contained in:
Lilian Roller 2019-11-20 10:15:12 +01:00
parent 838d1e323f
commit 3d9d79f740
No known key found for this signature in database
GPG key ID: 5215C3441797AB2B
7 changed files with 8 additions and 8 deletions

View file

@ -3,14 +3,14 @@
when: submodules_versioncheck|bool when: submodules_versioncheck|bool
- name: register os-specific variables - name: register os-specific variables
include_vars: default.yml include_vars: vars/default.yml
when: when:
- ansible_distribution != 'Fedora' - ansible_distribution != 'Fedora'
- ansible_distribution != 'Archlinux' - ansible_distribution != 'Archlinux'
- ansible_distribution != 'CentOS' - ansible_distribution != 'CentOS'
- name: register os-specific variables - name: register os-specific variables
include_vars: "{{ ansible_distribution | lower }}.yml" include_vars: "vars/{{ ansible_distribution | lower }}.yml"
when: when:
- ansible_distribution == 'Fedora' - ansible_distribution == 'Fedora'
- ansible_distribution == 'Archlinux' - ansible_distribution == 'Archlinux'

View file

@ -98,6 +98,10 @@ PrintMotd no
# sftp (required by ansible) # sftp (required by ansible)
# Subsystem sftp /usr/lib/openssh/sftp-server # Subsystem sftp /usr/lib/openssh/sftp-server
Subsystem sftp {{ sftp_server }} {% if ansible_os_family == 'Redhat' %}
Subsystem sftp /usr/libexec/openssh/sftp-server
{% else %}
Subsystem sftp /usr/lib/openssh/sftp-server
{% endif %}
# ETC # ETC

View file

@ -1,3 +1,2 @@
--- ---
ssh_service: sshd ssh_service: sshd
sftp_server: '/usr/lib/openssh/sftp-server'

View file

@ -1,3 +1,2 @@
--- ---
ssh_service: sshd ssh_service: sshd
sftp_server: '/usr/libexec/openssh/sftp-server'

View file

@ -1,3 +1,2 @@
--- ---
ssh_service: ssh ssh_service: ssh
sftp_server: '/usr/lib/openssh/sftp-server'

View file

@ -1,3 +1,2 @@
--- ---
ssh_service: sshd ssh_service: sshd
sftp_server: '/usr/lib/openssh/sftp-server'

View file

@ -1,3 +1,3 @@
--- ---
playbook_version_number: 2054 # should be over ninethousand playbook_version_number: 2056 # should be over ninethousand
playbook_version_path: 'role-sshd_chaos-bodensee_github.com.version' playbook_version_path: 'role-sshd_chaos-bodensee_github.com.version'