run syncthing web UI on port 444
This commit is contained in:
parent
ed6723e1da
commit
da6a26d4fd
3 changed files with 25 additions and 4 deletions
|
@ -7,22 +7,31 @@
|
|||
template:
|
||||
src: "{{ role_path }}/config.xml.j2"
|
||||
dest: /srv/syncthing/config.xml
|
||||
register: config
|
||||
|
||||
- name: Copy private key
|
||||
copy:
|
||||
src: "{{ role_path }}/key.pem"
|
||||
dest: /srv/syncthing/key.pem
|
||||
register: privkey
|
||||
|
||||
- name: Copy certificate
|
||||
copy:
|
||||
src: "{{ role_path }}/cert.pem"
|
||||
dest: /srv/syncthing/cert.pem
|
||||
register: cert
|
||||
|
||||
- name: Copy Docker stack file
|
||||
template:
|
||||
src: "{{ role_path }}/docker-stack.yml.j2"
|
||||
dest: /srv/syncthing/docker-stack.yml
|
||||
|
||||
- name: Remove docker stack
|
||||
docker_stack:
|
||||
name: syncthing
|
||||
state: absent
|
||||
when: config.changed or privkey.changed or cert.changed
|
||||
|
||||
- name: Deploy Docker stack
|
||||
docker_stack:
|
||||
name: syncthing
|
||||
|
|
Reference in a new issue