|
1 |
| -[](https://github.com/marketplace/actions/check-ansible-debian-stable) |
2 |
| -[](https://github.com/roles-ansible/check-ansible-debian-stable-action/blob/master/LICENSE) |
| 1 | +[](https://github.com/marketplace/actions/check-ansible-centos-centos8) |
| 2 | +[](https://github.com/roles-ansible/check-ansible-centos-centos8-action/blob/master/LICENSE) |
3 | 3 |
|
4 |
| - Check Ansible Debian stable |
| 4 | + Check Ansible CentOS centos8 |
5 | 5 | =======================
|
6 |
| -This action allows you to test your ansible role or your playbook in a Docker Container with ``debian:stable``. |
| 6 | +This action allows you to test your ansible role or your playbook in a Docker Container with ``centos:centos8``. |
7 | 7 |
|
8 | 8 | ## Usage
|
9 |
| -To use the action simply create an ``ansible-debian-stable.yml`` *(or choose custom ``*.yml`` name)* in the ``.github/workflows/`` directory. |
| 9 | +To use the action simply create an ``ansible-centos-centos8.yml`` *(or choose custom ``*.yml`` name)* in the ``.github/workflows/`` directory. |
10 | 10 |
|
11 | 11 | For example:
|
12 | 12 |
|
13 | 13 | ```yaml
|
14 |
| -name: Ansible check debian:stable # feel free to pick your own name |
| 14 | +--- |
| 15 | +name: Ansible check centos:stream8 # feel free to pick your own name |
15 | 16 |
|
| 17 | +# yamllint disable-line rule:truthy |
16 | 18 | on: [push, pull_request]
|
17 | 19 |
|
18 | 20 | jobs:
|
19 | 21 | build:
|
20 |
| - |
21 | 22 | runs-on: ubuntu-latest
|
22 | 23 |
|
23 | 24 | steps:
|
24 |
| - # Important: This sets up your GITHUB_WORKSPACE environment variable |
25 |
| - - uses: actions/checkout@v2 |
26 |
| - |
27 |
| - - name: ansible check with debian:stable |
28 |
| - # replace "master" with any valid ref |
29 |
| - uses: roles-ansible/check-ansible-debian-stable-action@master |
30 |
| - with: |
31 |
| - targets: "./" |
32 |
| - # [required] |
33 |
| - # Paths to your ansible role or playboox.yml you want to test |
34 |
| - # Some Examples: |
35 |
| - # targets: "role/my_role/" |
36 |
| - # targets: "site.yml" |
37 |
| - # |
38 |
| - # group: "" |
39 |
| - # [optional] |
40 |
| - # When testing playbooks you have to tell ansible |
41 |
| - # the group you that we write in our hosts file. |
42 |
| - # example: |
43 |
| - # group: 'servers' |
44 |
| - # hosts: "" |
45 |
| - # [optional] |
46 |
| - # When testing playbooks you have to give one example |
47 |
| - # host this action should use to test your playbook. |
48 |
| - # > We only spawn one docker container that mean |
49 |
| - # > we can only test one host at the time. Sorry |
50 |
| - # some examples: |
51 |
| - # hosts: 'localhost' |
52 |
| - # hosts: 'srv01.example.com' |
53 |
| - # requirements |
54 |
| - # [optional] |
55 |
| - # When testing playbooks and you are using ansible galaxy, |
56 |
| - # you may be interested in installing your requirements |
57 |
| - # from ansible galaxy. |
58 |
| - # To do this please provide us either the role name directly |
59 |
| - # requirements: 'do1jlr.ansible_version' |
60 |
| - # or your requiements.yml file. |
61 |
| - # requirements: 'requirements.yml' |
| 25 | + # Important: This sets up your GITHUB_WORKSPACE environment variable |
| 26 | + - name: checkout git repo |
| 27 | + uses: actions/checkout@v3 |
| 28 | + |
| 29 | + - name: ansible check with quay.io/centos/centos:stream8 |
| 30 | + # optionally replace "master" with any valid git ref |
| 31 | + uses: roles-ansible/check-ansible-centos-centos8-action@master |
| 32 | + with: |
| 33 | + targets: "./" |
| 34 | + # [required] |
| 35 | + # Paths to your ansible role or playboox.yml you want to test |
| 36 | + # Some Examples: |
| 37 | + # targets: "role/my_role/" |
| 38 | + # targets: "site.yml" |
| 39 | + # |
| 40 | + # group: "" |
| 41 | + # [optional] |
| 42 | + # When testing playbooks you have to tell ansible |
| 43 | + # the group you that we write in our hosts file. |
| 44 | + # example: |
| 45 | + # group: 'servers' |
| 46 | + # |
| 47 | + # hosts: "" |
| 48 | + # [optional] |
| 49 | + # When testing playbooks you have to give one example |
| 50 | + # host this action should use to test your playbook. |
| 51 | + # > We only spawn one docker container that mean |
| 52 | + # > we can only test one host at the time. Sorry |
| 53 | + # some examples: |
| 54 | + # hosts: 'localhost' |
| 55 | + # hosts: 'srv01.example.com' |
| 56 | + # |
| 57 | + # requirements: "" |
| 58 | + # [optional] |
| 59 | + # When testing playbooks and you are using ansible galaxy, |
| 60 | + # you may be interested in installing your requirements |
| 61 | + # from ansible galaxy. |
| 62 | + # To do this please provide us either the role name directly |
| 63 | + # requirements: 'do1jlr.ansible_version' |
| 64 | + # or your requiements.yml file. |
| 65 | + # requirements: 'requirements.yml' |
| 66 | + # |
| 67 | + # tags: "" |
| 68 | + # [optional] |
| 69 | + # If you want to limit the test to some tags, you can use this |
| 70 | + # tags or the skiptags option. It will trigger the --tags $tags |
| 71 | + # option to ansible. |
| 72 | + # |
| 73 | + # skiptags: "" |
| 74 | + # [optional] |
| 75 | + # See tags. This will trigger the --skip-tags $skiptags option |
| 76 | + # to ansible. |
62 | 77 | ```
|
63 | 78 |
|
64 | 79 | Alternatively, you can run the ansible check only on certain branches:
|
@@ -86,7 +101,7 @@ The Dockerfile and associated scripts and documentation in this project are rele
|
86 | 101 |
|
87 | 102 | Credits
|
88 | 103 | --------------
|
89 |
| -The initial GitHub action has been created by [Stefan Stölzle](/stoe) at |
90 |
| -[stoe/actions](https://github.com/stoe/actions).<br/> |
91 |
| -It was used by ansible for lint checks at [ansible/ansible-lint-action](https://github.com/ansible/ansible-lint-action.git)<br/> |
92 |
| -It was modified from [L3D](github.com/do1jlr) to check ansible roles. |
| 104 | ++ The initial GitHub action has been created by [Stefan Stölzle](https://github.com/stoe) at |
| 105 | +[stoe/actions](https://github.com/stoe/actions). |
| 106 | ++ It was used by ansible for lint checks at [ansible/ansible-lint-action](https://github.com/ansible/ansible-lint-action.git) |
| 107 | ++ It was modified from [L3D](github.com/do1jlr) to check ansible roles. |
0 commit comments