Molecule works properly.
This commit is contained in:
parent
347f54fd79
commit
e9af3321dd
@ -5,16 +5,19 @@
|
|||||||
tasks:
|
tasks:
|
||||||
- name: Check if the docker-compose file exists.
|
- name: Check if the docker-compose file exists.
|
||||||
ansible.builtin.stat:
|
ansible.builtin.stat:
|
||||||
path: "~/authentik/docker-compose.yml"
|
path: "~/plausible/docker-compose.yml"
|
||||||
register: docker_compose_file
|
register: docker_compose_file
|
||||||
- name: Remove authentik docker-compose.
|
|
||||||
|
- name: Remove docker-compose.
|
||||||
community.docker.docker_compose:
|
community.docker.docker_compose:
|
||||||
project_src: ~/authentik/
|
project_src: ~/plausible/
|
||||||
build: false
|
build: false
|
||||||
state: absent
|
state: absent
|
||||||
when: docker_compose_file.stat.exists
|
when: docker_compose_file.stat.exists
|
||||||
become: false
|
become: false
|
||||||
|
|
||||||
- name: Remove the docker-compose file
|
- name: Remove the docker-compose file
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "~/authentik/docker-compose.yml"
|
path: "~/plausible/docker-compose.yml"
|
||||||
state: absent
|
state: absent
|
||||||
|
when: docker_compose_file.stat.exists
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
---
|
---
|
||||||
roles:
|
roles:
|
||||||
- geerlingguy.docker
|
- geerlingguy.docker
|
||||||
collections:
|
collections: []
|
||||||
- community.docker
|
|
||||||
|
Loading…
Reference in New Issue
Block a user