From b9c69ea47a13612c12bdc234b6e72ff2a86f0507 Mon Sep 17 00:00:00 2001 From: Edoardo Putti Date: Sat, 21 May 2016 18:24:22 +0200 Subject: [PATCH] draft for gogs --- roles/gogs/meta/main.yaml | 7 +++++++ roles/gogs/tasks/main.yaml | 14 ++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 roles/gogs/meta/main.yaml create mode 100644 roles/gogs/tasks/main.yaml diff --git a/roles/gogs/meta/main.yaml b/roles/gogs/meta/main.yaml new file mode 100644 index 0000000..550203f --- /dev/null +++ b/roles/gogs/meta/main.yaml @@ -0,0 +1,7 @@ +--- +dependencies: + - nginx + - nginx_proxy + server_name: "projects.lilik.it" + config_name: "gogs" + remote_host: "http://127.0.0.1:3000" diff --git a/roles/gogs/tasks/main.yaml b/roles/gogs/tasks/main.yaml new file mode 100644 index 0000000..abb1d5d --- /dev/null +++ b/roles/gogs/tasks/main.yaml @@ -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