File tree Expand file tree Collapse file tree 6 files changed +59
-26
lines changed Expand file tree Collapse file tree 6 files changed +59
-26
lines changed Original file line number Diff line number Diff line change 13
13
- name : galaxy
14
14
uses :
robertdebock/[email protected]
15
15
with :
16
- galaxy_api_key : ${{ secrets.galaxy_api_key }}
16
+ galaxy_api_key : ${{ secrets.galaxy_api_key }}
17
+
Original file line number Diff line number Diff line change 17
17
uses : actions/checkout@v2
18
18
with :
19
19
path : " ${{ github.repository }}"
20
- - name : molecule
21
- uses : robertdebock/molecule- action@2 .0.0
20
+ - name : Molecule for Ansible
21
+ uses : MonolithProjects/ action-molecule@v1 .0.1
22
22
env :
23
- PERSONAL_ACCESS_TOKEN : ${{ secrets.PERSONAL_ACCESS_TOKEN }}
24
- # uninstall:
25
- # needs:
26
- # - test
27
- # runs-on: ubuntu-latest
28
- # strategy:
29
- # fail-fast: false
30
- # steps:
31
- # - name: checkout
32
- # uses: actions/checkout@v2
33
- # with:
34
- # path: "${{ github.repository }}"
35
- # - name: molecule
36
- # uses: robertdebock/[email protected]
37
- # with:
38
- # entrypoint: /usr/local/bin/molecule
39
- # optionst: "converge -- --tags uninstall"
40
- # env:
41
- # PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
23
+ PERSONAL_ACCESS_TOKEN : ${{ secrets.PERSONAL_ACCESS_TOKEN }}
Original file line number Diff line number Diff line change @@ -13,8 +13,10 @@ This role will deploy or redeploy or uninstall and register or unregister local
13
13
* Supported Linux distros:
14
14
* CentOS/RHEL 7,8
15
15
* Debian 9,10
16
- * Fedora 31,30,29,28
17
- * Ubuntu 16,18
16
+ * Fedora 32,31,30,29,28
17
+ * Ubuntu 16,18,20
18
+
19
+ ** Note:** Fedora 32 and Ubuntu 20 must use Ansible 2.9.8+. Other distros/releases will work also with older 2.8.0+ Ansible.
18
20
19
21
* System must have access to the GitHub.
20
22
@@ -26,7 +28,7 @@ Personal Access Token for GitHub account can be created [here](https://github.co
26
28
* Runner user has to be pre-created.
27
29
Recommended role: ` monolithprojects.user_management `
28
30
29
- * CentOS/Fedora systems require EPEL repository.
31
+ * CentOS systems require EPEL repository.
30
32
Recommended role: ` robertdebock.epel `
31
33
32
34
## Role Variables
Original file line number Diff line number Diff line change 5
5
description : Deploy Github Actions private runner
6
6
company : MonolithProjects
7
7
license : " license (MIT)"
8
- min_ansible_version : 2.8
8
+ min_ansible_version : 2.9. 8
9
9
platforms :
10
10
- name : EL
11
11
versions :
12
12
- 6
13
13
- 7
14
+ - 8
14
15
- name : Fedora
15
16
versions :
16
17
- 28
17
18
- 29
18
19
- 30
19
20
- 31
21
+ - 32
20
22
- name : Debian
21
23
versions :
22
24
- buster
25
27
versions :
26
28
- xenial
27
29
- bionic
30
+ - focal
28
31
galaxy_tags :
29
32
- github
30
33
- actions
Original file line number Diff line number Diff line change 2
2
driver :
3
3
name : docker
4
4
lint : |
5
+ set -e
5
6
yamllint .
7
+ ansible-lint
6
8
platforms :
7
9
- name : CentOS7
8
10
image : monolithprojects/systemd-centos7:latest
@@ -34,6 +36,16 @@ platforms:
34
36
- /sys/fs/cgroup:/sys/fs/cgroup:ro
35
37
privileged : yes
36
38
pre_build_image : yes
39
+ - name : Fedora32
40
+ image : monolithprojects/systemd-fedora32:latest
41
+ command : /sbin/init
42
+ tmpfs :
43
+ - /run
44
+ - /tmp
45
+ volumes :
46
+ - /sys/fs/cgroup:/sys/fs/cgroup:ro
47
+ privileged : yes
48
+ pre_build_image : yes
37
49
- name : Ubuntu16
38
50
image : monolithprojects/systemd-ubuntu16:latest
39
51
command : /sbin/init
@@ -54,6 +66,16 @@ platforms:
54
66
- /sys/fs/cgroup:/sys/fs/cgroup:ro
55
67
privileged : yes
56
68
pre_build_image : yes
69
+ - name : Ubuntu20
70
+ image : monolithprojects/systemd-ubuntu20:latest
71
+ command : /sbin/init
72
+ tmpfs :
73
+ - /run
74
+ - /tmp
75
+ volumes :
76
+ - /sys/fs/cgroup:/sys/fs/cgroup:ro
77
+ privileged : yes
78
+ pre_build_image : yes
57
79
- name : Debian9
58
80
image : monolithprojects/systemd-debian9:latest
59
81
command : /sbin/init
@@ -83,6 +105,14 @@ provisioner:
83
105
inventory :
84
106
host_vars :
85
107
CentOS8 :
108
+ ansible_python_interpreter : /usr/bin/python3
109
+ Debian9 :
110
+ ansible_python_interpreter : /usr/bin/python3
111
+ Debian10 :
112
+ ansible_python_interpreter : /usr/bin/python3
113
+ Ubuntu18 :
114
+ ansible_python_interpreter : /usr/bin/python3
115
+ Ubuntu20 :
86
116
ansible_python_interpreter : /usr/bin/python3
87
117
verifier :
88
118
name : ansible
Original file line number Diff line number Diff line change 55
55
tags :
56
56
- install
57
57
58
+ - name : Install dependencies on Ubuntu Focal systems
59
+ package :
60
+ pkg :
61
+ - liblttng-ust0
62
+ - libkrb5-3
63
+ - zlib1g
64
+ - libssl1.1
65
+ - libicu66
66
+ state : present
67
+ update_cache : yes
68
+ when : (ansible_distribution == "Ubuntu" and ansible_distribution_major_version == "20")
69
+ tags :
70
+ - install
71
+
72
+
58
73
- name : Install dependencies on RHEL/CentOS/Fedora systems
59
74
package :
60
75
name :
You can’t perform that action at this time.
0 commit comments