mirror of
https://github.com/willshersystems/ansible-sshd
synced 2024-11-28 13:50:17 +01:00
feat: support for debian 12
This commit is contained in:
parent
4ba6ca1a80
commit
70c913ed0e
5 changed files with 37 additions and 1 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
|
||||
|
|
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