File tree 3 files changed +45
-0
lines changed
3 files changed +45
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ - name : Deploy GitHub Runner
3
+ hosts : github-runners
4
+ become : yes
5
+ roles :
6
+ - role : geerlingguy.pip
7
+ - role : geerlingguy.docker
8
+ tasks :
9
+ - name : Deploy runners
10
+ ansible.builtin.include_role :
11
+ role : monolithprojects.github_actions_runner
12
+ vars :
13
+ runner_name : " {{ ansible_facts.nodename }}-{{ runner.key }}"
14
+ runner_dir : " {{ base_runner_dir }}/{{ runner.key }}"
15
+ runner_labels : " {{ runner.value.labels | default(default_runner_labels) }}"
16
+ runner_state : " {{ runner.value.state | default('started') }}"
17
+ with_dict :
18
+ " {{ github_runners }}"
19
+ loop_control :
20
+ loop_var : runner
21
+
22
+ - name : Ensure runner service is running
23
+ ansible.builtin.service :
24
+ name : actions.runner.{{ github_account }}-{{ github_repo }}.{{ ansible_facts.nodename }}-{{ runner.key }}.service
25
+ state : started
26
+ enabled : true
27
+ become : true
28
+ when : runner_state | default('started') == 'started'
29
+ with_dict :
30
+ " {{ github_runners }}"
31
+ loop_control :
32
+ loop_var : runner
Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ collections:
6
6
version : 0.4.1
7
7
- name : stackhpc.hashicorp
8
8
version : 2.4.0
9
+ - name : stackhpc.kayobe_workflows
10
+ version : 1.0.1
9
11
roles :
10
12
- src : stackhpc.vxlan
11
13
- name : ansible-lockdown.rhel8_cis
14
16
- name : wazuh-ansible
15
17
src : https://github.com/stackhpc/wazuh-ansible
16
18
version : stackhpc
19
+ - name : geerlingguy.pip
20
+ version : 2.2.0
21
+ - name : monolithprojects.github_actions_runner
22
+ version : 1.18.5
23
+ - src : https://github.com/stackhpc/ansible-role-docker.git
24
+ name : geerlingguy.docker
Original file line number Diff line number Diff line change
1
+ ---
2
+ - name : Write Kayobe Automation Workflows for GitHub
3
+ hosts : github-writer
4
+ roles :
5
+ - stackhpc.kayobe_workflows.github
You can’t perform that action at this time.
0 commit comments