forked from evolix/ansible-roles
First step to use new evoadmin / FPM
This commit is contained in:
parent
5bbec8f829
commit
9aec7c8891
|
@ -1,5 +1,8 @@
|
||||||
---
|
---
|
||||||
# defaults file for packweb-apache
|
# defaults file for packweb-apache
|
||||||
general_alert_email: "root@localhost"
|
general_alert_email: "root@localhost"
|
||||||
|
|
||||||
packweb_enable_evoadmin_vhost: True
|
packweb_enable_evoadmin_vhost: True
|
||||||
packweb_fhs_retrictions: True
|
packweb_fhs_retrictions: True
|
||||||
|
packweb_apache_modphp: True
|
||||||
|
packweb_apache_fpm: False
|
||||||
|
|
|
@ -14,6 +14,14 @@
|
||||||
name: php
|
name: php
|
||||||
vars:
|
vars:
|
||||||
php_apache_enable: True
|
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
|
- name: Add elements to user account template
|
||||||
file:
|
file:
|
||||||
|
|
|
@ -21,9 +21,21 @@
|
||||||
git:
|
git:
|
||||||
repo: https://forge.evolix.org/evoadmin-web.git
|
repo: https://forge.evolix.org/evoadmin-web.git
|
||||||
dest: "{{ evoadmin_document_root}}"
|
dest: "{{ evoadmin_document_root}}"
|
||||||
|
version: jessie
|
||||||
update: no
|
update: no
|
||||||
# Warning: Need sudo!
|
# Warning: Need sudo!
|
||||||
become_user: "{{ evoadmin_username }}"
|
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
|
- include: remount_usr_rw.yml
|
||||||
when: evoadmin_scripts_dir | search ("/usr")
|
when: evoadmin_scripts_dir | search ("/usr")
|
||||||
|
|
Loading…
Reference in a new issue