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

34 lines
1.3 KiB
YAML
Raw Normal View History

---
- hosts: dev
vars:
firewall:
- { port: '{{ global.dev.gitea.port.ssh }}', ipv: "v4", proto: "tcp" }
- { port: '{{ global.dev.gitea.port.ssh }}', ipv: "v6", proto: "tcp" }
systemd:
services:
- { name: "gitea", enabled: true, state: 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 }}"
port:
http: "{{ global.dev.gitea.port.http }}"
ssh: "{{ global.dev.gitea.port.ssh }}"
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:
- "gitea"
- "postgresql"
roles:
2020-05-28 15:08:29 +00:00
- vault
- users
- file
- gitea
- systemd
- firewall