Deploy framadate from crans gitlab

certbot_on_virtu
Alexandre Iooss 2019-06-13 17:52:56 +02:00
parent 77fd922311
commit 8859721873
No known key found for this signature in database
GPG Key ID: 6C79278F3FCDCC02
3 changed files with 15 additions and 15 deletions

View File

@ -1,8 +0,0 @@
---
# URL to clone
service_repo: https://framagit.org/framasoft/framadate.git
# name of the service user
# It means that you will have to `sudo -u THISUSER zsh` to debug
service_user: www-data
service_path: /var/www/framadate

View File

@ -15,20 +15,20 @@
- name: Clone framadate project
git:
repo: "{{ service_repo }}"
dest: "{{ service_path }}"
version: "{{ service_version }}"
repo: "{{ framadate_repo }}"
dest: "{{ framadate_path }}"
version: "{{ framadate_version }}"
- name: Set perms on framadate code
file:
path: "{{ service_path }}"
path: "{{ framadate_path }}"
state: directory
owner: "{{ service_user }}"
owner: "{{ framadate_user }}"
recurse: true
# composer install
# become: true
# become_user: "{{ service_user }}"
# become_user: "{{ framadate_user }}"
# cd framadate
# sudo -u www-data touch admin/stdout.log

View File

@ -6,11 +6,19 @@
# Deploy FramaDate
- hosts: voyager.adm.crans.org
vars:
service_version: 1.1.10
# mirror on Crans GitLab because adm has no network
framadate_repo: https://gitlab.crans.org/nounous/framadate.git
framadate_version: 1.1.10
# User who will run framadate
# you will have to `sudo -u THISUSER zsh` to debug
framadate_user: www-data
framadate_path: /var/www/framadate
# Indicate service in motd
motd_role:
name: framadate
path: "{{ framadate_path }}"
roles:
- framadate
- motd-role