diff --git a/etc/kayobe/ansible/deployment/deploy-github-runner.yml b/etc/kayobe/ansible/deployment/deploy-github-runner.yml index 8f69d83455..42b966c312 100644 --- a/etc/kayobe/ansible/deployment/deploy-github-runner.yml +++ b/etc/kayobe/ansible/deployment/deploy-github-runner.yml @@ -6,6 +6,17 @@ - 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