Merge pull request #124 from ahmadalli/master

exit_host on ansible >= 2.8
This commit is contained in:
Matt Willsher 2020-09-18 21:31:24 +01:00 committed by GitHub
commit 5fe1801c7e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 55 additions and 0 deletions

49
.github/workflows/ansible-lint.yml vendored Normal file
View file

@ -0,0 +1,49 @@
name: Ansible Lint # feel free to pick your own name
on: [push, pull_request]
jobs:
test-ansible27:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Lint Ansible Playbook
uses: ansible/ansible-lint-action@master
with:
targets: "tests/test.yml"
override-deps: |
ansible==2.7
args: ""
test-ansible28:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Lint Ansible Playbook
uses: ansible/ansible-lint-action@master
with:
targets: "tests/test.yml"
override-deps: |
ansible==2.8
args: ""
test-ansible29:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Lint Ansible Playbook
uses: ansible/ansible-lint-action@master
with:
targets: "tests/test.yml"
override-deps: |
ansible==2.9
args: ""
test-ansible210:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Lint Ansible Playbook
uses: ansible/ansible-lint-action@master
with:
targets: "tests/test.yml"
override-deps: |
ansible==2.10
args: ""

View file

@ -3,6 +3,12 @@
- name: OS is supported
assert:
that: __sshd_os_supported|bool
when: ansible_version.full is version_compare('2.8', '<')
- name: OS is supported
meta: end_host
when:
- not __sshd_os_supported|bool
- name: Install ssh packages
package: