Merge pull request #238 from domrim/debian-updates

This commit is contained in:
Matt Willsher 2023-06-19 06:46:11 +01:00 committed by GitHub
commit 807c1d7758
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 40 additions and 3 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

View file

@ -6,10 +6,10 @@ __sshd_packages:
__sshd_config_mode: "0644" __sshd_config_mode: "0644"
__sshd_defaults: __sshd_defaults:
ChallengeResponseAuthentication: false ChallengeResponseAuthentication: false
UsePAM: true
X11Forwarding: true X11Forwarding: true
PrintMotd: false PrintMotd: false
AcceptEnv: LANG LC_* AcceptEnv: LANG LC_*
Subsystem: "sftp {{ __sshd_sftp_server }}" Subsystem: "sftp {{ __sshd_sftp_server }}"
UsePAM: true
__sshd_os_supported: true __sshd_os_supported: true
__sshd_runtime_directory: /run/sshd __sshd_runtime_directory: /run/sshd

View file

@ -5,11 +5,12 @@ __sshd_packages:
- openssh-sftp-server - openssh-sftp-server
__sshd_config_mode: "0644" __sshd_config_mode: "0644"
__sshd_defaults: __sshd_defaults:
Include: /etc/ssh/sshd_config.d/*.conf
ChallengeResponseAuthentication: false ChallengeResponseAuthentication: false
UsePAM: true
X11Forwarding: true X11Forwarding: true
PrintMotd: false PrintMotd: false
AcceptEnv: LANG LC_* AcceptEnv: LANG LC_*
Subsystem: "sftp {{ __sshd_sftp_server }}" Subsystem: "sftp {{ __sshd_sftp_server }}"
UsePAM: true
__sshd_os_supported: true __sshd_os_supported: true
__sshd_runtime_directory: /run/sshd __sshd_runtime_directory: /run/sshd

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