Skip to content

Commit 5632f6c

Browse files
WIP
1 parent 575333f commit 5632f6c

File tree

5 files changed

+37
-51
lines changed

5 files changed

+37
-51
lines changed

README.md

Lines changed: 1 addition & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,2 @@
1-
Role Name
1+
WIP
22
=========
3-
4-
A brief description of the role goes here.
5-
6-
Requirements
7-
------------
8-
9-
Any pre-requisites that may not be covered by Ansible itself or the role should
10-
be mentioned here. For instance, if the role uses the EC2 module, it may be a
11-
good idea to mention in this section that the boto package is required.
12-
13-
Role Variables
14-
--------------
15-
16-
A description of the settable variables for this role should go here, including
17-
any variables that are in defaults/main.yml, vars/main.yml, and any variables
18-
that can/should be set via parameters to the role. Any variables that are read
19-
from other roles and/or the global scope (ie. hostvars, group vars, etc.) should
20-
be mentioned here as well.
21-
22-
Dependencies
23-
------------
24-
25-
A list of other roles hosted on Galaxy should go here, plus any details in
26-
regards to parameters that may need to be set for other roles, or variables that
27-
are used from other roles.
28-
29-
Example Playbook
30-
----------------
31-
32-
Including an example of how to use your role (for instance, with variables
33-
passed in as parameters) is always nice for users too:
34-
35-
- hosts: servers
36-
roles:
37-
- { role: ansible-github_actions_runner, x: 42 }
38-
39-
License
40-
-------
41-
42-
BSD
43-
44-
Author Information
45-
------------------
46-
47-
An optional section for the role authors to include contact information, or a
48-
website (HTML is not allowed).

meta/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,5 @@
3030
- local
3131
- runner
3232
- cicd
33-
dependencies: []
33+
dependencies:
34+
- role: robertdebock.epel

tasks/install_deps.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
- name: Install dependencies on Debian/Ubuntu systems
3+
package:
4+
name:
5+
- liblttng-ust0
6+
- libkrb5-3
7+
- zlib1g
8+
- libssl1.1
9+
- libicu63
10+
state: present
11+
when: (ansible_facts['distribution'] == "Debian") or
12+
(ansible_facts['distribution'] == "Ubuntu")
13+
become: yes
14+
15+
- name: Install dependencies on RHEL/CentOS/Fedora systems
16+
package:
17+
name:
18+
- lttng-ust
19+
- openssl-libs
20+
- krb5-libs
21+
- zlib
22+
- libicu
23+
state: present
24+
when: (ansible_facts['distribution'] == "RedHat") or
25+
(ansible_facts['distribution'] == "CentOS") or
26+
(ansible_facts['distribution'] == "Fedora")
27+
become: yes

tasks/install_runner.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@
33
file:
44
path: "{{ runner_dir }}"
55
state: directory
6-
mode: '0755'
6+
mode: "0755"
7+
owner: "{{ ansible_user }}"
8+
group: "{{ ansible_user }}"
79
recurse: yes
10+
become: yes
811

912
- name: Download runner package
1013
local_action:
@@ -19,4 +22,4 @@
1922
dest: "{{ runner_dir }}/"
2023

2124
- name: Run
22-
command: '{{ runner_dir }}/config.sh --url {{ github_server }}/{{ github_account }}/{{ github_repo }} --token {{ repo_token }}'
25+
command: "{{ runner_dir }}/config.sh --url {{ github_server }}/{{ github_account }}/{{ github_repo }} --token {{ lookup('env', 'GITHUB_ACCESS_TOKEN') }}"

tasks/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
---
2-
- include_tasks: install_runner.yml
2+
- include_tasks: install_deps.yml
3+
- include_tasks: install_runner.yml

0 commit comments

Comments
 (0)