mirror of
https://github.com/willshersystems/ansible-sshd
synced 2024-12-23 00:50:18 +01:00
Merge pull request #238 from domrim/debian-updates
This commit is contained in:
commit
807c1d7758
7 changed files with 40 additions and 3 deletions
13
.github/workflows/ansible-debian-check.yml
vendored
13
.github/workflows/ansible-debian-check.yml
vendored
|
@ -3,6 +3,19 @@ name: Run tests on Debian
|
|||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
debian-bookworm:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: checkout PR
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: ansible check with debian bookworm (12)
|
||||
uses: roles-ansible/check-ansible-debian-bookworm-action@v1
|
||||
with:
|
||||
group: local
|
||||
hosts: localhost
|
||||
targets: "tests/tests_*.yml"
|
||||
|
||||
debian-bullseye:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
|
|
@ -31,7 +31,7 @@ Tested on:
|
|||
|
||||
* Ubuntu precise, trusty, xenial, bionic, focal, jammy
|
||||
* [![Run tests on Ubuntu latest](https://github.com/willshersystems/ansible-sshd/actions/workflows/ansible-ubuntu.yml/badge.svg)](https://github.com/willshersystems/ansible-sshd/actions/workflows/ansible-ubuntu.yml)
|
||||
* Debian wheezy, jessie, stretch, buster, bullseye
|
||||
* Debian wheezy, jessie, stretch, buster, bullseye, bookworm
|
||||
* [![Run tests on Debian](https://github.com/willshersystems/ansible-sshd/actions/workflows/ansible-debian-check.yml/badge.svg)](https://github.com/willshersystems/ansible-sshd/actions/workflows/ansible-debian-check.yml)
|
||||
* EL 6, 7, 8, 9 derived distributions
|
||||
* [![Run tests on CentOS](https://github.com/willshersystems/ansible-sshd/actions/workflows/ansible-centos-check.yml/badge.svg)](https://github.com/willshersystems/ansible-sshd/actions/workflows/ansible-centos-check.yml)
|
||||
|
|
|
@ -15,6 +15,7 @@ galaxy_info:
|
|||
- stretch
|
||||
- buster
|
||||
- bullseye
|
||||
- bookworm
|
||||
- name: Ubuntu
|
||||
versions:
|
||||
- precise
|
||||
|
|
|
@ -1,4 +1,10 @@
|
|||
---
|
||||
- name: Ensure apt sources are up to date on debian systems
|
||||
ansible.builtin.apt:
|
||||
update_cache: true
|
||||
when:
|
||||
- ansible_facts['distribution'] == 'Debian'
|
||||
|
||||
- name: Make sure openssh is installed before creating backup
|
||||
ansible.builtin.package:
|
||||
name: openssh-server
|
||||
|
|
|
@ -6,10 +6,10 @@ __sshd_packages:
|
|||
__sshd_config_mode: "0644"
|
||||
__sshd_defaults:
|
||||
ChallengeResponseAuthentication: false
|
||||
UsePAM: true
|
||||
X11Forwarding: true
|
||||
PrintMotd: false
|
||||
AcceptEnv: LANG LC_*
|
||||
Subsystem: "sftp {{ __sshd_sftp_server }}"
|
||||
UsePAM: true
|
||||
__sshd_os_supported: true
|
||||
__sshd_runtime_directory: /run/sshd
|
||||
|
|
|
@ -5,11 +5,12 @@ __sshd_packages:
|
|||
- openssh-sftp-server
|
||||
__sshd_config_mode: "0644"
|
||||
__sshd_defaults:
|
||||
Include: /etc/ssh/sshd_config.d/*.conf
|
||||
ChallengeResponseAuthentication: false
|
||||
UsePAM: true
|
||||
X11Forwarding: true
|
||||
PrintMotd: false
|
||||
AcceptEnv: LANG LC_*
|
||||
Subsystem: "sftp {{ __sshd_sftp_server }}"
|
||||
UsePAM: true
|
||||
__sshd_os_supported: true
|
||||
__sshd_runtime_directory: /run/sshd
|
||||
|
|
16
vars/Debian_12.yml
Normal file
16
vars/Debian_12.yml
Normal file
|
@ -0,0 +1,16 @@
|
|||
---
|
||||
__sshd_service: ssh
|
||||
__sshd_packages:
|
||||
- openssh-server
|
||||
- openssh-sftp-server
|
||||
__sshd_config_mode: "0644"
|
||||
__sshd_defaults:
|
||||
Include: /etc/ssh/sshd_config.d/*.conf
|
||||
KbdInteractiveAuthentication: false
|
||||
UsePAM: true
|
||||
X11Forwarding: true
|
||||
PrintMotd: false
|
||||
AcceptEnv: LANG LC_*
|
||||
Subsystem: "sftp {{ __sshd_sftp_server }}"
|
||||
__sshd_os_supported: true
|
||||
__sshd_runtime_directory: /run/sshd
|
Loading…
Reference in a new issue