Files
ansible/gogs.yaml
T
2020-12-02 23:35:47 +03:00

36 lines
732 B
YAML

- 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
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