File tree Expand file tree Collapse file tree 5 files changed +37
-51
lines changed Expand file tree Collapse file tree 5 files changed +37
-51
lines changed Original file line number Diff line number Diff line change 1
- Role Name
1
+ WIP
2
2
=========
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).
Original file line number Diff line number Diff line change 30
30
- local
31
31
- runner
32
32
- cicd
33
- dependencies : []
33
+ dependencies :
34
+ - role : robertdebock.epel
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change 3
3
file :
4
4
path : " {{ runner_dir }}"
5
5
state : directory
6
- mode : ' 0755'
6
+ mode : " 0755"
7
+ owner : " {{ ansible_user }}"
8
+ group : " {{ ansible_user }}"
7
9
recurse : yes
10
+ become : yes
8
11
9
12
- name : Download runner package
10
13
local_action :
19
22
dest : " {{ runner_dir }}/"
20
23
21
24
- 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') }} "
Original file line number Diff line number Diff line change 1
1
---
2
- - include_tasks : install_runner.yml
2
+ - include_tasks : install_deps.yml
3
+ - include_tasks : install_runner.yml
You can’t perform that action at this time.
0 commit comments