Role: docker_compose: replace command with module #214

Merged
mg merged 7 commits from dcm into master 2024-10-23 17:59:35 +02:00
2 changed files with 2 additions and 4 deletions
Showing only changes of commit 77fb85228d - Show all commits

View file

@ -32,4 +32,4 @@ networks:
traefik:
external: true
# test
# testdfg

View file

@ -55,9 +55,7 @@
become: true
community.docker.docker_compose_v2:
project_src: "{{ compose_dest_basedir }}/{{ item.name }}"
state: restarted
register: start_result # speichere ergebnis in var
changed_when: "start_result.rc == 0" # markiere tasks als changed when exit-code == 0
state: restarted
loop: "{{ compose_files }}"
when:
- item.state == "present"