mirror of
https://github.com/willshersystems/ansible-sshd
synced 2024-11-08 21:03:29 +01:00
Merge pull request #124 from ahmadalli/master
exit_host on ansible >= 2.8
This commit is contained in:
commit
5fe1801c7e
2 changed files with 55 additions and 0 deletions
49
.github/workflows/ansible-lint.yml
vendored
Normal file
49
.github/workflows/ansible-lint.yml
vendored
Normal 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: ""
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue