Skip to content

Commit 9396153

Browse files
Add Debian support
Former-commit-id: 6bdc21d
1 parent f73470c commit 9396153

File tree

7 files changed

+65
-13
lines changed

7 files changed

+65
-13
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
actions-runner-linux-*
1+
*.gz

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Requirements
1414

1515
* Supported Linux distros:
1616
* CentOS/RHEL 7,8
17+
* Debian 9,10
1718
* Fedora 16+
1819
* Ubuntu 16,18
1920

meta/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
- name: Fedora
1515
versions:
1616
- all
17-
# - name: Debian
18-
# versions:
19-
# - jessie
20-
# - stretch
17+
- name: Debian
18+
versions:
19+
- buster
20+
- stretch
2121
- name: Ubuntu
2222
versions:
2323
- xenial

molecule/default/molecule.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,26 @@ platforms:
4444
- /sys/fs/cgroup:/sys/fs/cgroup:ro
4545
privileged: yes
4646
pre_build_image: yes
47+
- name: Debian9
48+
image: monolithprojects/systemd-debian9:latest
49+
command: /sbin/init
50+
tmpfs:
51+
- /run
52+
- /tmp
53+
volumes:
54+
- /sys/fs/cgroup:/sys/fs/cgroup:ro
55+
privileged: yes
56+
pre_build_image: yes
57+
- name: Debian10
58+
image: monolithprojects/systemd-debian10:latest
59+
command: /sbin/init
60+
tmpfs:
61+
- /run
62+
- /tmp
63+
volumes:
64+
- /sys/fs/cgroup:/sys/fs/cgroup:ro
65+
privileged: yes
66+
pre_build_image: yes
4767
provisioner:
4868
name: ansible
4969
playbooks:

tasks/install_deps.yml

Lines changed: 33 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,33 @@
11
---
2-
- name: Install dependencies on Debian Stretch / Ubuntu Xenial systems
2+
- name: Install dependencies on Debian Stretch
3+
package:
4+
pkg:
5+
- liblttng-ust0
6+
- libkrb5-3
7+
- zlib1g
8+
- libssl1.1
9+
- libicu57
10+
state: present
11+
update_cache: yes
12+
when: (ansible_distribution == "Debian" and ansible_distribution_major_version == "9")
13+
tags:
14+
- install
15+
16+
- name: Install dependencies on Debian Buster
17+
package:
18+
pkg:
19+
- liblttng-ust0
20+
- libkrb5-3
21+
- zlib1g
22+
- libssl1.1
23+
- libicu63
24+
state: present
25+
update_cache: yes
26+
when: (ansible_distribution == "Debian" and ansible_distribution_major_version == "10")
27+
tags:
28+
- install
29+
30+
- name: Install dependencies on Ubuntu Xenial systems
331
package:
432
pkg:
533
- liblttng-ust0
@@ -9,12 +37,11 @@
937
- libicu55
1038
state: present
1139
update_cache: yes
12-
when: (ansible_distribution == "Debian" and ansible_distribution_major_version == "9") or
13-
(ansible_distribution == "Ubuntu" and ansible_distribution_major_version == "16")
40+
when: (ansible_distribution == "Ubuntu" and ansible_distribution_major_version == "16")
1441
tags:
1542
- install
16-
17-
- name: Install dependencies on Debian Buster / Ubuntu Bionic systems
43+
44+
- name: Install dependencies on Ubuntu Bionic systems
1845
package:
1946
pkg:
2047
- liblttng-ust0
@@ -24,8 +51,7 @@
2451
- libicu60
2552
state: present
2653
update_cache: yes
27-
when: (ansible_distribution == "Debian" and ansible_distribution_major_version == "10") or
28-
(ansible_distribution == "Ubuntu" and ansible_distribution_major_version == "18")
54+
when: (ansible_distribution == "Ubuntu" and ansible_distribution_major_version == "18")
2955
tags:
3056
- install
3157

tasks/install_runner.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
tags:
3030
- install
3131

32-
- name: Register runner
32+
- name: Register runner (if new installation)
3333
command: "{{ runner_dir }}/./config.sh --url {{ github_server }}/{{ github_account }}/{{ github_repo }} \
3434
--token {{ registration.json.token }} --unattended"
3535
args:

tasks/uninstall_runner.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
when: runner_service in services
88
tags:
99
- uninstall
10+
11+
- name: Refresh services facts
12+
service_facts:
13+
tags:
14+
- uninstall
1015

1116
- name: Remove GitHub Actions Runner service
1217
file:

0 commit comments

Comments
 (0)