This repository has been archived on 2020-08-22. You can view files and clone it, but cannot push or open issues or pull requests.
ansible/dev.yml

38 lines
1.4 KiB
YAML

---
- hosts: dev
vars:
systemd:
services:
- { name: "gitea", enabled: true, action: restarted }
file:
- { path: "{{ gitea.path.config }}", owner: "git", group: "git", mode: "770", state: directory }
- { path: "{{ gitea.path.data }}", owner: "git", group: "git", mode: "770", state: directory }
gitea:
user: "{{ global.dev.gitea.user }}"
domain: "{{ global.dev.gitea.domain }}"
data:
uuid: 'bdaa719c-b48c-468e-b923-82b379106905'
port:
http: "{{ global.dev.gitea.port.http }}"
ssh:
listen: "{{ global.dev.gitea.port.ssh }}"
display: "2442"
path:
data: "/mnt/gitea" # TODO: Replace with device UUIDs
config: "/etc/gitea"
users:
- { name: 'git', shell: '/bin/bash', lock: true, system: true, comm: 'Git Version Control' }
vault:
roles:
- "gitea"
- "postgresql"
mounts:
- { uuid: '{{ gitea.data.uuid }}', dest: '/mnt/gitea', state: 'mounted', fstype: 'xfs' }
roles:
- vault
- mounts
- users
- file
- gitea
- systemd