Skip to content
Snippets Groups Projects
Verified Commit 88597218 authored by me5na7qbjqbrp's avatar me5na7qbjqbrp
Browse files

Deploy framadate from crans gitlab

parent 77fd9223
No related branches found
No related tags found
No related merge requests found
---
# 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
......@@ -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
......
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment