Molecule works properly.

This commit is contained in:
Laur Ivan 2022-09-22 10:12:52 +02:00
parent 347f54fd79
commit e9af3321dd
2 changed files with 8 additions and 6 deletions

View File

@ -5,16 +5,19 @@
tasks:
- name: Check if the docker-compose file exists.
ansible.builtin.stat:
path: "~/authentik/docker-compose.yml"
path: "~/plausible/docker-compose.yml"
register: docker_compose_file
- name: Remove authentik docker-compose.
- name: Remove docker-compose.
community.docker.docker_compose:
project_src: ~/authentik/
project_src: ~/plausible/
build: false
state: absent
when: docker_compose_file.stat.exists
become: false
- name: Remove the docker-compose file
ansible.builtin.file:
path: "~/authentik/docker-compose.yml"
path: "~/plausible/docker-compose.yml"
state: absent
when: docker_compose_file.stat.exists

View File

@ -1,5 +1,4 @@
---
roles:
- geerlingguy.docker
collections:
- community.docker
collections: []