Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ansible: Allow passing tmpfs options #112

Merged
merged 1 commit into from
Dec 16, 2023
Merged
Show file tree
Hide file tree
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
4 changes: 3 additions & 1 deletion ansible/roles/runner/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ runner_base_dir: /etc/actions-runner
runner_workers: 1
runner_prefix: ""
runner_workdir: /tmp/work
runner_tmpfs_options:
- exec
runner_gh_token_default: replace with your token
runner_gh_user_default: replace with your GH user
runner_docker_tag: main
Expand All @@ -25,4 +27,4 @@ runner_repo_list:
# ---START PEM SECRET---
# ...
# ...
# ---END PEM SECRET---
# ---END PEM SECRET---
2 changes: 1 addition & 1 deletion ansible/roles/runner/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@
{% if runner_docker_mount_volume %}
--volume=actions-runner-{{ item.normalized }}-worker-%i:{{ runner_workdir }} \
{% else %}
{{ '--tmpfs %s:exec' | format(runner_workdir) }} \
{{ '--tmpfs %s:%s' | format(runner_workdir, runner_tmpfs_options | join(',')) }} \
{% endif %}
--rm \
--env-file "{{ runner_base_dir }}/actions-runner-{{ item.normalized }}-worker-%i.env" \
Expand Down
Loading