Compare commits

...

2 commits

Author SHA1 Message Date
bd503eaa0d Use "yes" boolean value 2025-04-19 21:39:34 +02:00
8c91c595f4 Use separate docker compose calls 2025-04-19 21:39:17 +02:00
2 changed files with 17 additions and 5 deletions

View file

@ -57,10 +57,22 @@
group: sonny
mode: '0755'
- name: Start container
- name: Stop current containers
community.docker.docker_compose_v2:
project_src: '{{ syncthing_app_dir }}'
state: stopped
- name: Pull missing image
community.docker.docker_compose_v2:
project_src: '{{ syncthing_app_dir }}'
pull: missing
- name: Remove dangling containers
community.docker.docker_compose_v2:
project_src: '{{ syncthing_app_dir }}'
remove_orphans: true
state: restarted
pull: always
wait: true
- name: Start container
community.docker.docker_compose_v2:
project_src: '{{ syncthing_app_dir }}'
state: present

View file

@ -7,4 +7,4 @@ Name={{ network_interface }}
Address={{ lan_ip }}/{{ lan_prefix }}
Gateway={{ lan_gateway }}
DNS={{ lan_dns }}
IgnoreCarrierLoss=true
IgnoreCarrierLoss=yes