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:
parent
838d1e323f
commit
3d9d79f740
7 changed files with 8 additions and 8 deletions
|
@ -3,14 +3,14 @@
|
|||
when: submodules_versioncheck|bool
|
||||
|
||||
- name: register os-specific variables
|
||||
include_vars: default.yml
|
||||
include_vars: vars/default.yml
|
||||
when:
|
||||
- ansible_distribution != 'Fedora'
|
||||
- ansible_distribution != 'Archlinux'
|
||||
- ansible_distribution != 'CentOS'
|
||||
|
||||
- name: register os-specific variables
|
||||
include_vars: "{{ ansible_distribution | lower }}.yml"
|
||||
include_vars: "vars/{{ ansible_distribution | lower }}.yml"
|
||||
when:
|
||||
- ansible_distribution == 'Fedora'
|
||||
- ansible_distribution == 'Archlinux'
|
||||
|
|
|
@ -98,6 +98,10 @@ PrintMotd no
|
|||
|
||||
# sftp (required by ansible)
|
||||
# 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
|
||||
|
|
|
@ -1,3 +1,2 @@
|
|||
---
|
||||
ssh_service: sshd
|
||||
sftp_server: '/usr/lib/openssh/sftp-server'
|
||||
|
|
|
@ -1,3 +1,2 @@
|
|||
---
|
||||
ssh_service: sshd
|
||||
sftp_server: '/usr/libexec/openssh/sftp-server'
|
||||
|
|
|
@ -1,3 +1,2 @@
|
|||
---
|
||||
ssh_service: ssh
|
||||
sftp_server: '/usr/lib/openssh/sftp-server'
|
||||
|
|
|
@ -1,3 +1,2 @@
|
|||
---
|
||||
ssh_service: sshd
|
||||
sftp_server: '/usr/lib/openssh/sftp-server'
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue