First step to use new evoadmin / FPM

This commit is contained in:
Gregory Colpart 2017-08-23 04:28:21 +02:00
parent 5bbec8f829
commit 9aec7c8891
3 changed files with 23 additions and 0 deletions

View File

@ -1,5 +1,8 @@
---
# defaults file for packweb-apache
general_alert_email: "root@localhost"
packweb_enable_evoadmin_vhost: True
packweb_fhs_retrictions: True
packweb_apache_modphp: True
packweb_apache_fpm: False

View File

@ -14,6 +14,14 @@
name: php
vars:
php_apache_enable: True
when: packweb_apache_modphp
- name: Include PHP role
include_role:
name: php
vars:
php_fpm_enable: True
when: packweb_apache_fpm
- name: Add elements to user account template
file:

View File

@ -21,9 +21,21 @@
git:
repo: https://forge.evolix.org/evoadmin-web.git
dest: "{{ evoadmin_document_root}}"
version: jessie
update: no
# Warning: Need sudo!
become_user: "{{ evoadmin_username }}"
when: ansible_distribution_release == "jessie"
- name: Clone evoadmin repository
git:
repo: https://forge.evolix.org/evoadmin-web.git
dest: "{{ evoadmin_document_root}}"
version: master
update: yes
# Warning: Need sudo!
become_user: "{{ evoadmin_username }}"
when: ansible_distribution_major_version | version_compare('9', '>=')
- include: remount_usr_rw.yml
when: evoadmin_scripts_dir | search ("/usr")