2024-02-01 16:04:29 +00:00
|
|
|
---
|
|
|
|
# task/install_docker file for deploy_haproxy
|
|
|
|
- name: "Update container volume list"
|
|
|
|
ansible.builtin.set_fact:
|
2024-02-01 22:05:41 +00:00
|
|
|
deploy_haproxy_container_volume_map: "{{ deploy_haproxy_container_volume_map + deploy_haproxy_extra_container_volumes }}"
|
2024-02-01 16:04:29 +00:00
|
|
|
|
2024-02-07 20:20:13 +00:00
|
|
|
- name: "Include ednz_cloud.docker_systemd_service"
|
2024-02-01 16:04:29 +00:00
|
|
|
ansible.builtin.include_role:
|
2024-02-07 20:20:13 +00:00
|
|
|
name: ednz_cloud.docker_systemd_service
|
2024-02-01 16:04:29 +00:00
|
|
|
vars:
|
2024-02-01 22:05:41 +00:00
|
|
|
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 }}"
|
2024-02-01 16:04:29 +00:00
|
|
|
docker_systemd_service_flags:
|
|
|
|
- network: host
|
2024-02-01 22:05:41 +00:00
|
|
|
- volume: "{{ deploy_haproxy_container_volume_map }}"
|
2024-02-01 16:04:29 +00:00
|
|
|
docker_systemd_service_name: "{{ docker_systemd_service_container_name }}_container"
|
2024-02-01 22:05:41 +00:00
|
|
|
docker_systemd_service_state: "{{ 'started' if deploy_haproxy_start_service else 'stopped'}}"
|
|
|
|
docker_systemd_service_restart: "{{ true if deploy_haproxy_start_service else false}}"
|