deploy_haproxy/tasks/install_docker.yml
Bertrand Lanson db446aba16
All checks were successful
test / Linting (push) Successful in 8s
test / Molecule tests (default, ubuntu2004) (push) Successful in 1m16s
test / Molecule tests (default, debian11) (push) Successful in 1m30s
test / Molecule tests (default, debian12) (push) Successful in 1m30s
test / Molecule tests (default, ubuntu2204) (push) Successful in 1m15s
test / Molecule tests (with_tls_enabled, debian11) (push) Successful in 1m7s
test / Molecule tests (with_tls_enabled, debian12) (push) Successful in 1m14s
test / Molecule tests (with_tls_enabled, ubuntu2004) (push) Successful in 1m24s
test / Molecule tests (with_tls_enabled, ubuntu2204) (push) Successful in 1m35s
feat(core): change namespace and update dependencies
2024-02-07 21:20:13 +01:00

20 lines
1005 B
YAML

---
# task/install_docker file for deploy_haproxy
- name: "Update container volume list"
ansible.builtin.set_fact:
deploy_haproxy_container_volume_map: "{{ deploy_haproxy_container_volume_map + deploy_haproxy_extra_container_volumes }}"
- name: "Include ednz_cloud.docker_systemd_service"
ansible.builtin.include_role:
name: ednz_cloud.docker_systemd_service
vars:
docker_systemd_service_container_name: "haproxy"
docker_systemd_service_image: "{{ deploy_haproxy_docker_image }}:{{ deploy_haproxy_version }}"
docker_systemd_service_container_env: "{{ deploy_haproxy_env_variables }}"
docker_systemd_service_flags:
- network: host
- volume: "{{ deploy_haproxy_container_volume_map }}"
docker_systemd_service_name: "{{ docker_systemd_service_container_name }}_container"
docker_systemd_service_state: "{{ 'started' if deploy_haproxy_start_service else 'stopped'}}"
docker_systemd_service_restart: "{{ true if deploy_haproxy_start_service else false}}"