deploy_gitea_runner/tasks/install_docker.yml
Bertrand Lanson 28dfb322ff
All checks were successful
test / Linting (push) Successful in 11s
test / Molecule tests (default, debian11) (push) Successful in 2m11s
test / Molecule tests (default, ubuntu2204) (push) Successful in 2m3s
test / Molecule tests (default, ubuntu2004) (push) Successful in 2m22s
test / Molecule tests (with_docker_host, debian11) (push) Successful in 1m52s
test / Molecule tests (default, debian12) (push) Successful in 1m37s
test / Molecule tests (with_docker_host, debian12) (push) Successful in 1m31s
test / Molecule tests (with_docker_host, ubuntu2004) (push) Successful in 2m2s
test / Molecule tests (with_docker_host, ubuntu2204) (push) Successful in 1m46s
feat(core): change namespace
2024-02-05 22:48:01 +01:00

26 lines
1.4 KiB
YAML

---
# task/install_docker file for deploy_gitea_runner
- name: "Include ednz_cloud.docker_systemd_service"
ansible.builtin.include_role:
name: ednz_cloud.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}}"