fix stuff in WIP IN node playbook

This commit is contained in:
2024-01-07 22:06:11 +05:30
parent 0efcaa83f7
commit 5223300807
3 changed files with 66 additions and 42 deletions

View File

@@ -1,18 +1,17 @@
- name: Docker
hosts: in2
hosts: in
vars_files:
- ./vars.yaml
tasks:
- name: Debug apps.groups
debug:
msg: "{{ apps.groups }}"
- name: Deploy stack role
ansible.builtin.include_role:
name: docker
name: gi-yt.docker_compose_declarative
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 }}"
loop: "{{ apps.groups | default({}) | dict2items }}"
when: item.value.docker_settings