Bertrand Lanson
b51942bba2
Some checks failed
test / Linting (push) Successful in 10s
test / Molecule tests (default, debian11) (push) Successful in 1m40s
test / Molecule tests (default, debian12) (push) Successful in 2m3s
test / Molecule tests (default, ubuntu2004) (push) Successful in 2m28s
test / Molecule tests (with_docker_host, debian11) (push) Failing after 44s
test / Molecule tests (with_docker_host, debian12) (push) Failing after 23s
test / Molecule tests (with_docker_host, ubuntu2004) (push) Failing after 23s
test / Molecule tests (default, ubuntu2204) (push) Failing after 1m50s
test / Molecule tests (with_docker_host, ubuntu2204) (push) Failing after 44s
26 lines
1.4 KiB
YAML
26 lines
1.4 KiB
YAML
---
|
|
# task/install_docker file for deploy_gitea_runner
|
|
- name: "Include ednxzu.docker_systemd_service"
|
|
ansible.builtin.include_role:
|
|
name: ednxzu.docker_systemd_service
|
|
vars:
|
|
docker_systemd_service_container_name: "{{ deploy_gitea_runner_name }}"
|
|
docker_systemd_service_image: "gitea/act_runner:{{ deploy_gitea_runner_version }}"
|
|
docker_systemd_service_container_env:
|
|
TZ: "{{ deploy_gitea_runner_timezone }}"
|
|
CONFIG_FILE: /config.yaml
|
|
GITEA_INSTANCE_URL: "{{ deploy_gitea_runner_server_url }}"
|
|
GITEA_RUNNER_REGISTRATION_TOKEN: "{{ deploy_gitea_runner_server_token }}"
|
|
GITEA_RUNNER_NAME: "{{ deploy_gitea_runner_name }}"
|
|
docker_systemd_service_flags:
|
|
- network: bridge
|
|
- volume:
|
|
- "/var/run/docker.sock:/var/run/docker.sock"
|
|
- "{{ deploy_gitea_runner_directory }}/config.yaml:/config.yaml"
|
|
- "{{ deploy_gitea_runner_directory }}/data:/data"
|
|
- "{{ deploy_gitea_runner_directory }}/cache:/cache"
|
|
- publish: "{{ [deploy_gitea_runner_config.cache.port ~ ':' ~ deploy_gitea_runner_config.cache.port] if deploy_gitea_runner_config.cache.enabled else [] }}"
|
|
docker_systemd_service_name: "{{ docker_systemd_service_container_name }}_container"
|
|
docker_systemd_service_state: "{{ 'started' if deploy_gitea_runner_start_service else 'stopped'}}"
|
|
docker_systemd_service_restart: "{{ true if deploy_gitea_runner_start_service else false}}"
|