- hosts: odroid become: yes roles: - { role: 0x0i.systemd } vars: unit_config: - name: gogs Unit: Description: Gogs git repo service Service: User: 'git' Group: 'git' WorkingDirectory: /mnt/DATA/gogsRuntime/home ExecStart: /mnt/DATA/gogsRuntime/dist/gogs web -c /mnt/DATA/gogsRuntime/gogs/conf/app.ini Install: WantedBy: multi-user.target - name: gogs-backup Unit: Description: Creates gogs backup Service: Type: oneshot User: 'git' Group: 'git' WorkingDirectory: /mnt/DATA/backups ExecStart: /mnt/DATA/gogsRuntime/dist/gogs backup -c /mnt/DATA/gogsRuntime/gogs/conf/app.ini - name: gogs-backup-timer type: timer Timer: OnBootSec: 10min OnUnitInactiveSec: 1d Unit: gogs-backup.service tasks: - name: group git exists group: name: "git" state: present - name: user git user: name: "git" group: "git" append: yes home: /mnt/DATA/gogsRuntime/home shell: /bin/bash createhome: yes generate_ssh_key: yes state: present