Layout refactor
Also included provisioning for htpc host
This commit is contained in:
parent
f90702c7b8
commit
970f7489fb
103 changed files with 782 additions and 893 deletions
18
tasks/syncthing.yml
Normal file
18
tasks/syncthing.yml
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
- name: Create configuration dir
|
||||
ansible.builtin.file:
|
||||
path: '{{ xdg_config_dir }}/syncthing'
|
||||
state: directory
|
||||
mode: '0755'
|
||||
|
||||
- name: Stop syncthing service
|
||||
ansible.builtin.systemd:
|
||||
name: syncthing
|
||||
scope: user
|
||||
state: stopped
|
||||
|
||||
- name: Copy configuration file
|
||||
ansible.builtin.template:
|
||||
src: 'templates/syncthing/config.j2'
|
||||
dest: '{{ xdg_config_dir }}/syncthing/config.xml'
|
||||
mode: '0640'
|
||||
notify: start syncthing
|
||||
Loading…
Add table
Add a link
Reference in a new issue