Another overdue checkpoint

This commit is contained in:
Jonathan Cremin 2022-04-25 12:48:36 +01:00
parent 692269f9ff
commit c501435876
25 changed files with 182 additions and 81 deletions

View file

@ -14,12 +14,26 @@
mode: "0644"
dest: ~/.local/share/systemd/user/syncthing.service
- name: Create Syncthing directories
file:
dest: "{{item}}"
mode: '0700'
owner: jonathan
group: jonathan
state: directory
with_items:
- /home/jonathan/.config/podman/etc/syncthing
- /home/jonathan/.config/podman/syncthing
- /home/jonathan/Sync
- /home/jonathan/Code
- /home/jonathan/Udemy
- 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"
@ -34,4 +48,8 @@
network: host
restart_policy: on-failure:5
- name: Enable syncthing systemd unit
ansible.builtin.systemd:
name: syncthing
scope: user
enabled: yes