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
Raw Normal View History

---
- 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 }}"
2020-05-31 18:27:29 +00:00
data:
uuid: 'bdaa719c-b48c-468e-b923-82b379106905'
port:
http: "{{ global.dev.gitea.port.http }}"
2020-05-31 18:27:29 +00:00
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' }
2020-05-28 15:08:29 +00:00
vault:
2020-05-31 18:27:29 +00:00
roles:
- "gitea"
- "postgresql"
mounts:
- { uuid: '{{ gitea.data.uuid }}', dest: '/mnt/gitea', state: 'mounted', fstype: 'xfs' }
roles:
2020-05-28 15:08:29 +00:00
- vault
2020-05-31 18:27:29 +00:00
- mounts
- users
- file
- gitea
- systemd