Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions etc/kayobe/ansible/deployment/deploy-github-runner.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,32 @@
---
- name: Deploy GitHub Runner

Check failure on line 2 in etc/kayobe/ansible/deployment/deploy-github-runner.yml

View workflow job for this annotation

GitHub Actions / Ansible 2.18 lint with Python 3.12

syntax-check[specific]

'when' is not a valid attribute for a Play

Check failure on line 2 in etc/kayobe/ansible/deployment/deploy-github-runner.yml

View workflow job for this annotation

GitHub Actions / Ansible 2.17 lint with Python 3.10

syntax-check[specific]

'when' is not a valid attribute for a Play
hosts: github-runners
become: true
vars:
docker_daemon_options:
proxies:
http-proxy: "{{ http_proxy }}"
https-proxy: "{{ https_proxy }}"
no-proxy: "{{ (['localhost', '127.0.0.1', '127.0.0.2'] + (no_proxy | default([]))) | join(',') }}"
when: >
http_proxy is defined or
https_proxy is defined or
no_proxy is defined
roles:
- role: geerlingguy.pip
- role: geerlingguy.docker
tasks:
- name: Set custom_env fact if any proxy variable is defined
ansible.builtin.set_fact:
custom_env: |
http_proxy={{ http_proxy | default('') }}
https_proxy={{ https_proxy | default('') }}
no_proxy={{ (['localhost', '127.0.0.1', '127.0.0.2'] + (no_proxy | default([]))) | unique | join(',') }}
when: >
http_proxy is defined or
https_proxy is defined or
no_proxy is defined

- name: Deploy runners
ansible.builtin.include_role:
name: monolithprojects.github_actions_runner
Expand Down
Loading