Molecule works properly.
This commit is contained in:
parent
347f54fd79
commit
e9af3321dd
@ -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
|
||||
|
@ -1,5 +1,4 @@
|
||||
---
|
||||
roles:
|
||||
- geerlingguy.docker
|
||||
collections:
|
||||
- community.docker
|
||||
collections: []
|
||||
|
Loading…
Reference in New Issue
Block a user