blob: 45a97a21b9363807882834715ff2f7f2411feb0d (
plain) (
tree)
|
|
---
- name: install syncthing
ansible.builtin.package:
name: syncthing
state: present
- name: get syncthing user id
ansible.builtin.getent:
database: passwd
- name: enable and start syncthing
ansible.builtin.systemd:
name: syncthing
state: started
enabled: true
scope: user
environment:
XDG_RUNTIME_DIR: "/run/user/{{ ansible_facts.getent_passwd[syncthing_workstation_user][1] }}"
become: true
become_user: "{{ dotfiles_workstation_user }}"
|