mirror of
https://github.com/willshersystems/ansible-sshd
synced 2024-11-29 06:00:19 +01:00
Update CI to Ubuntu focal, add Ubuntu focal support to module
This commit is contained in:
parent
a3fe654044
commit
ed989f571c
3 changed files with 22 additions and 13 deletions
16
.travis.yml
16
.travis.yml
|
@ -1,26 +1,19 @@
|
||||||
---
|
---
|
||||||
|
dist: focal
|
||||||
language: c
|
language: c
|
||||||
sudo: required
|
sudo: required
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
webhooks: https://galaxy.ansible.com/api/v1/notifications/
|
webhooks: https://galaxy.ansible.com/api/v1/notifications/
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- sudo add-apt-repository -y ppa:ansible/ansible
|
- sudo -H pip3 install ansible
|
||||||
- sudo apt-get update -qq
|
|
||||||
- sudo apt-get -qq install ansible
|
|
||||||
|
|
||||||
install:
|
install:
|
||||||
# Add ansible.cfg to pick up roles path.
|
# 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:
|
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.
|
# Check the roles syntax.
|
||||||
- "ANSIBLE_FORCE_COLOR=1 ansible-playbook -i tests/inventory tests/test.yml --syntax-check"
|
- "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'
|
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: pass' && exit 0)
|
||||||
|| (echo 'Idempotence test: fail' && exit 1)
|
|| (echo 'Idempotence test: fail' && exit 1)
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ galaxy_info:
|
||||||
description: OpenSSH SSH daemon configuration
|
description: OpenSSH SSH daemon configuration
|
||||||
company: Willsher Systems
|
company: Willsher Systems
|
||||||
license: LGPLv3
|
license: LGPLv3
|
||||||
min_ansible_version: 1.8
|
min_ansible_version: 2.8
|
||||||
platforms:
|
platforms:
|
||||||
- name: Debian
|
- name: Debian
|
||||||
versions:
|
versions:
|
||||||
|
@ -17,6 +17,8 @@ galaxy_info:
|
||||||
- precise
|
- precise
|
||||||
- trusty
|
- trusty
|
||||||
- xenial
|
- xenial
|
||||||
|
- bionic
|
||||||
|
- focal
|
||||||
- name: FreeBSD
|
- name: FreeBSD
|
||||||
version:
|
version:
|
||||||
- 10.1
|
- 10.1
|
||||||
|
@ -24,6 +26,7 @@ galaxy_info:
|
||||||
versions:
|
versions:
|
||||||
- 6
|
- 6
|
||||||
- 7
|
- 7
|
||||||
|
- 8
|
||||||
- name: Fedora
|
- name: Fedora
|
||||||
versions:
|
versions:
|
||||||
- 22
|
- 22
|
||||||
|
|
14
vars/Ubuntu_20.yml
Normal file
14
vars/Ubuntu_20.yml
Normal 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
|
Loading…
Reference in a new issue