[re2o] role to install re2o

certbot_on_virtu
_benjamin 2019-12-17 08:39:25 +01:00
parent 3451ca8268
commit bd4c72e974
3 changed files with 42 additions and 0 deletions

View File

@ -33,3 +33,11 @@
- hosts: unifi.adm.crans.org - hosts: unifi.adm.crans.org
roles: roles:
- unifi-controller - unifi-controller
# Deploy Re2o
- hosts: otis.adm.crans.org
vars:
re2o:
owner: root
roles:
- re2o

View File

@ -0,0 +1,31 @@
---
- name: Create re2o directory
file:
path: /var/www/re2o
state: directory
mode: '2775'
owner: "{{ re2o.owner }}"
group: nounou
- name: Set ACL for re2o project
command: setfacl -d -m 'g::rwx' /var/www/re2o
- git:
repo: 'http://gitlab.adm.crans.org/nounous/re2o.git'
dest: /var/www/re2o
umask: '002'
version: origin/crans
- name: Set owner of cloned project
file:
path: /var/www/re2o
owner: "{{ re2o.owner }}"
recurse: true
- name: Indicate re2o in motd
template:
src: update-motd.d/05-service.j2
dest: /etc/update-motd.d/05-re2o
mode: 0755
#TODO: deploy settings_local.py

View File

@ -0,0 +1,3 @@
#!/usr/bin/tail +3
# {{ ansible_managed }}
> Re2o a été déployé sur cette machine. Voir /var/www/re2o/.