Browse Source

draft for gogs

services
Edoardo Putti 9 years ago
parent
commit
b9c69ea47a
2 changed files with 21 additions and 0 deletions
  1. +7
    -0
      roles/gogs/meta/main.yaml
  2. +14
    -0
      roles/gogs/tasks/main.yaml

+ 7
- 0
roles/gogs/meta/main.yaml View File

@ -0,0 +1,7 @@
---
dependencies:
- nginx
- nginx_proxy
server_name: "projects.lilik.it"
config_name: "gogs"
remote_host: "http://127.0.0.1:3000"

+ 14
- 0
roles/gogs/tasks/main.yaml View File

@ -0,0 +1,14 @@
- name: Install Https for APT
apt: name=apt-transport-https update_cache=yes
- name: Install sqlite database
apt: name=sqlite3
- name: Install git
apt: name=git
- name: Add the repository key to system
apt_key: url=https://deb.packager.io/key state=present
- name: Add the package.io repository to the list
apt_repository: repo='deb https://deb.packager.io/gh/pkgr/gogs jessie pkgr' state=present
- name: Install Gogs
apt: name=gogs update_cache=yes
- name: Start at boot
service: #TODO

Loading…
Cancel
Save