Overdue commit
This commit is contained in:
parent
1e03c32201
commit
692269f9ff
49 changed files with 843 additions and 198 deletions
37
roles/syncthing/tasks/main.yml
Normal file
37
roles/syncthing/tasks/main.yml
Normal file
|
@ -0,0 +1,37 @@
|
|||
---
|
||||
|
||||
- name: Create ~/.local/share/systemd/user/
|
||||
file:
|
||||
dest: ~/.local/share/systemd/user/
|
||||
mode: '0755'
|
||||
owner: jonathan
|
||||
group: jonathan
|
||||
state: directory
|
||||
|
||||
- name: Create Systemd unit for Syncthing
|
||||
copy:
|
||||
src: syncthing.service
|
||||
mode: "0644"
|
||||
dest: ~/.local/share/systemd/user/syncthing.service
|
||||
|
||||
- name: Create and start Syncthing container
|
||||
containers.podman.podman_container:
|
||||
name: syncthing
|
||||
image: docker.io/syncthing/syncthing
|
||||
user: "0"
|
||||
memory: 512m
|
||||
env:
|
||||
PUID: "0"
|
||||
PGID: "0"
|
||||
volume:
|
||||
- /home/jonathan/.config/podman/etc/syncthing:/var/syncthing/config:Z
|
||||
- /home/jonathan/.config/podman/syncthing/:/var/syncthing:Z
|
||||
- /home/jonathan/Sync:/home/jonathan/Sync:Z
|
||||
- /home/jonathan/Code:/home/jonathan/Code:Z
|
||||
- /home/jonathan/Udemy:/home/jonathan/Udemy:Z
|
||||
- /home/jonathan/Pictures:/home/jonathan/Pictures:Z
|
||||
- /home/jonathan/Documents:/home/jonathan/Documents:Z
|
||||
network: host
|
||||
restart_policy: on-failure:5
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue