2024-01-06 23:32:18 +05:30
|
|
|
- name: Docker
|
2024-01-06 22:27:58 +05:30
|
|
|
hosts: in2
|
|
|
|
vars_files:
|
|
|
|
- ./vars.yaml
|
|
|
|
tasks:
|
|
|
|
- name: Deploy stack role
|
2024-01-06 23:32:18 +05:30
|
|
|
ansible.builtin.include_role:
|
2024-01-06 22:27:58 +05:30
|
|
|
name: docker
|
|
|
|
vars:
|
|
|
|
app: "{{ item.value }}"
|
|
|
|
app_name: "{{ item.key | lower }}"
|
|
|
|
default_restart_policy: unless-stopped
|
|
|
|
configs_dir: "/opt/configs"
|
2024-01-06 23:32:18 +05:30
|
|
|
configs_dir_local: "./configs/{{ item.key }}"
|
2024-01-06 22:27:58 +05:30
|
|
|
compose_dir: "/opt/docker"
|
|
|
|
data_dir: "/opt/docker"
|
|
|
|
loop: "{{ apps.groups | dict2items }}"
|
|
|
|
when: item.value.docker_settings
|