Compare commits
2 commits
29d3197bfc
...
bd503eaa0d
| Author | SHA1 | Date | |
|---|---|---|---|
| bd503eaa0d | |||
| 8c91c595f4 |
2 changed files with 17 additions and 5 deletions
|
|
@ -57,10 +57,22 @@
|
||||||
group: sonny
|
group: sonny
|
||||||
mode: '0755'
|
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:
|
community.docker.docker_compose_v2:
|
||||||
project_src: '{{ syncthing_app_dir }}'
|
project_src: '{{ syncthing_app_dir }}'
|
||||||
remove_orphans: true
|
remove_orphans: true
|
||||||
state: restarted
|
|
||||||
pull: always
|
- name: Start container
|
||||||
wait: true
|
community.docker.docker_compose_v2:
|
||||||
|
project_src: '{{ syncthing_app_dir }}'
|
||||||
|
state: present
|
||||||
|
|
|
||||||
|
|
@ -7,4 +7,4 @@ Name={{ network_interface }}
|
||||||
Address={{ lan_ip }}/{{ lan_prefix }}
|
Address={{ lan_ip }}/{{ lan_prefix }}
|
||||||
Gateway={{ lan_gateway }}
|
Gateway={{ lan_gateway }}
|
||||||
DNS={{ lan_dns }}
|
DNS={{ lan_dns }}
|
||||||
IgnoreCarrierLoss=true
|
IgnoreCarrierLoss=yes
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue