Update CI to Ubuntu focal, add Ubuntu focal support to module

This commit is contained in:
Matt Willsher 2020-09-18 20:48:56 +01:00
parent a3fe654044
commit ed989f571c
3 changed files with 22 additions and 13 deletions

View file

@ -1,4 +1,5 @@
---
dist: focal
language: c
sudo: required
@ -6,21 +7,13 @@ notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/
before_install:
- sudo add-apt-repository -y ppa:ansible/ansible
- sudo apt-get update -qq
- sudo apt-get -qq install ansible
- sudo -H pip3 install ansible
install:
# Add ansible.cfg to pick up roles path.
- "{ echo '[defaults]'; echo 'roles_path = ../'; } >> ansible.cfg"
- "{ echo '[defaults]'; echo 'roles_path = ../'; echo 'deprecation_warnings=False'; } >> ansible.cfg"
script:
# Check the ansible version.
- >
ansible --version
| grep -q '^ansible 2'
&& (echo 'Ansible 2.0+ test: pass' && exit 0)
|| (echo 'Ansible 2.0+ test: fail' && exit 1)
# Check the roles syntax.
- "ANSIBLE_FORCE_COLOR=1 ansible-playbook -i tests/inventory tests/test.yml --syntax-check"
@ -32,4 +25,3 @@ script:
ansible-playbook -i tests/inventory tests/test.yml --connection=local --become | grep -q 'changed=0.*failed=0'
&& (echo 'Idempotence test: pass' && exit 0)
|| (echo 'Idempotence test: fail' && exit 1)

View file

@ -4,7 +4,7 @@ galaxy_info:
description: OpenSSH SSH daemon configuration
company: Willsher Systems
license: LGPLv3
min_ansible_version: 1.8
min_ansible_version: 2.8
platforms:
- name: Debian
versions:
@ -17,6 +17,8 @@ galaxy_info:
- precise
- trusty
- xenial
- bionic
- focal
- name: FreeBSD
version:
- 10.1
@ -24,6 +26,7 @@ galaxy_info:
versions:
- 6
- 7
- 8
- name: Fedora
versions:
- 22

14
vars/Ubuntu_20.yml Normal file
View file

@ -0,0 +1,14 @@
---
__sshd_service: ssh
__sshd_packages:
- openssh-server
- openssh-sftp-server
__sshd_config_mode: "0644"
__sshd_defaults:
ChallengeResponseAuthentication: no
UsePAM: yes
X11Forwarding: yes
PrintMotd: no
AcceptEnv: LANG LC_*
Subsystem: "sftp /usr/lib/openssh/sftp-server"
__sshd_os_supported: yes