19 lines
531 B
YAML
19 lines
531 B
YAML
- name: Docker
|
|
hosts: in2
|
|
vars_files:
|
|
- ./vars.yaml
|
|
tasks:
|
|
- name: Deploy stack role
|
|
ansible.builtin.include_role:
|
|
name: docker
|
|
vars:
|
|
app: "{{ item.value }}"
|
|
app_name: "{{ item.key | lower }}"
|
|
default_restart_policy: unless-stopped
|
|
configs_dir: "/opt/configs"
|
|
configs_dir_local: "./configs/{{ item.key }}"
|
|
compose_dir: "/opt/docker"
|
|
data_dir: "/opt/docker"
|
|
loop: "{{ apps.groups | dict2items }}"
|
|
when: item.value.docker_settings
|