move to /srv
This commit is contained in:
parent
5331d25c4a
commit
5bf6d7acbc
13 changed files with 44 additions and 46 deletions
|
@ -1,23 +1,23 @@
|
|||
- name: Create Syncthing app directory
|
||||
file:
|
||||
path: /apps/syncthing
|
||||
path: /srv/syncthing
|
||||
state: directory
|
||||
- name: Create Syncthing configuration directory
|
||||
file:
|
||||
path: /apps/syncthing/config
|
||||
path: /srv/syncthing/config
|
||||
state: directory
|
||||
- name: Copy Syncthing private key
|
||||
copy:
|
||||
src: "{{ role_path }}/files/key.pem"
|
||||
dest: /apps/syncthing/config/key.pem
|
||||
dest: /srv/syncthing/config/key.pem
|
||||
- name: Copy Syncthing certificate
|
||||
copy:
|
||||
src: "{{ role_path }}/files/cert.pem"
|
||||
dest: /apps/syncthing/config/cert.pem
|
||||
dest: /srv/syncthing/config/cert.pem
|
||||
- name: Copy Syncthing configuration
|
||||
template:
|
||||
src: "{{ role_path }}/templates/config.xml.j2"
|
||||
dest: /apps/syncthing/config/config.xml
|
||||
dest: /srv/syncthing/config/config.xml
|
||||
- name: Create Syncthing data directory
|
||||
file:
|
||||
path: /data/syncthing
|
||||
|
@ -26,9 +26,9 @@
|
|||
- name: Copy Docker Compose script
|
||||
copy:
|
||||
src: "{{ role_path }}/files/docker-compose.yml"
|
||||
dest: /apps/syncthing/docker-compose.yml
|
||||
dest: /srv/syncthing/docker-compose.yml
|
||||
- name: Start Docker Compose
|
||||
docker_compose:
|
||||
project_src: /apps/syncthing
|
||||
project_src: /srv/syncthing
|
||||
pull: true
|
||||
remove_orphans: true
|
||||
|
|
Reference in a new issue