mirror of
https://github.com/Crocmagnon/ansible.git
synced 2024-11-23 15:58:04 +01:00
docker: remove orphans
This commit is contained in:
parent
a19f54552b
commit
7e5807e009
3 changed files with 5 additions and 2 deletions
|
@ -2,3 +2,4 @@
|
||||||
docker_app_name: some-app
|
docker_app_name: some-app
|
||||||
docker_dir: /mnt/data/{{ docker_app_name }}
|
docker_dir: /mnt/data/{{ docker_app_name }}
|
||||||
docker_build: policy
|
docker_build: policy
|
||||||
|
docker_remove_orphans: true
|
||||||
|
|
|
@ -1,12 +1,13 @@
|
||||||
---
|
---
|
||||||
- name: Stop service
|
- name: Stop service
|
||||||
|
listen: Restart service
|
||||||
community.docker.docker_compose_v2:
|
community.docker.docker_compose_v2:
|
||||||
project_src: "{{ docker_dir }}"
|
project_src: "{{ docker_dir }}"
|
||||||
state: stopped
|
state: stopped
|
||||||
listen: Restart service
|
|
||||||
- name: Start service
|
- name: Start service
|
||||||
|
listen: Restart service
|
||||||
community.docker.docker_compose_v2:
|
community.docker.docker_compose_v2:
|
||||||
project_src: "{{ docker_dir }}"
|
project_src: "{{ docker_dir }}"
|
||||||
state: present
|
state: present
|
||||||
build: "{{ docker_build }}"
|
build: "{{ docker_build }}"
|
||||||
listen: Restart service
|
remove_orphans: "{{ docker_remove_orphans }}"
|
||||||
|
|
|
@ -30,3 +30,4 @@
|
||||||
community.docker.docker_compose_v2:
|
community.docker.docker_compose_v2:
|
||||||
project_src: "{{ docker_dir }}"
|
project_src: "{{ docker_dir }}"
|
||||||
state: present
|
state: present
|
||||||
|
remove_orphans: "{{ docker_remove_orphans }}"
|
||||||
|
|
Loading…
Reference in a new issue