19 lines
522 B
YAML
19 lines
522 B
YAML
---
|
|
- name: Crear directorios
|
|
file: path=/opt/stacks/{{ item }} state=directory mode=0755
|
|
loop: ['npm', 'authentik']
|
|
|
|
- name: Configurar NPM
|
|
template: src=npm-compose.j2 dest=/opt/stacks/npm/compose.yaml
|
|
|
|
- name: Configurar Authentik
|
|
template: src=authentik-compose.j2 dest=/opt/stacks/authentik/compose.yaml
|
|
vars:
|
|
authentik_host_ip: "{{ ansible_host }}"
|
|
|
|
- name: Levantar Stacks
|
|
community.docker.docker_compose_v2:
|
|
project_src: "/opt/stacks/{{ item }}"
|
|
state: present
|
|
loop: ['npm', 'authentik']
|