feat: support for debian 12

This commit is contained in:
Dominik Rimpf 2023-06-13 12:01:50 +02:00
parent 4ba6ca1a80
commit 70c913ed0e
Failed to extract signature
5 changed files with 37 additions and 1 deletions

View file

@ -3,6 +3,19 @@ name: Run tests on Debian
on: [push, pull_request] on: [push, pull_request]
jobs: 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: debian-bullseye:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:

View file

@ -31,7 +31,7 @@ Tested on:
* Ubuntu precise, trusty, xenial, bionic, focal, jammy * 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) * [![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) * [![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 * 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) * [![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)

View file

@ -15,6 +15,7 @@ galaxy_info:
- stretch - stretch
- buster - buster
- bullseye - bullseye
- bookworm
- name: Ubuntu - name: Ubuntu
versions: versions:
- precise - precise

View file

@ -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 - name: Make sure openssh is installed before creating backup
ansible.builtin.package: ansible.builtin.package:
name: openssh-server name: openssh-server

16
vars/Debian_12.yml Normal file
View 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