2014-03-01 03:39:35 +01:00
|
|
|
---
|
2014-11-11 18:34:06 +01:00
|
|
|
# Variable setup.
|
2014-04-23 18:26:37 +02:00
|
|
|
- name: Include OS-specific variables.
|
|
|
|
include_vars: "{{ ansible_os_family }}.yml"
|
|
|
|
|
2014-06-07 20:01:14 +02:00
|
|
|
- name: Define php_packages.
|
2014-09-21 06:15:45 +02:00
|
|
|
set_fact:
|
|
|
|
php_packages: "{{ __php_packages | list }}"
|
2014-06-07 20:01:14 +02:00
|
|
|
when: php_packages is not defined
|
|
|
|
|
2014-11-10 21:38:41 +01:00
|
|
|
- name: Define php_webserver_daemon.
|
|
|
|
set_fact:
|
2014-11-11 17:50:44 +01:00
|
|
|
php_webserver_daemon: "{{ __php_webserver_daemon }}"
|
2014-11-10 21:38:41 +01:00
|
|
|
when: php_webserver_daemon is not defined
|
|
|
|
|
2015-02-26 21:17:51 +01:00
|
|
|
- name: Define php_conf_path.
|
|
|
|
set_fact:
|
|
|
|
php_conf_path: "{{ __php_conf_path }}"
|
|
|
|
when: php_conf_path is not defined
|
|
|
|
|
2014-11-11 18:34:06 +01:00
|
|
|
# Setup/install tasks.
|
|
|
|
- include: setup-RedHat.yml
|
2014-05-15 05:10:31 +02:00
|
|
|
when: ansible_os_family == 'RedHat'
|
2014-04-23 18:26:37 +02:00
|
|
|
|
2014-11-11 18:34:06 +01:00
|
|
|
- include: setup-Debian.yml
|
2014-04-23 18:26:37 +02:00
|
|
|
when: ansible_os_family == 'Debian'
|
2014-03-01 03:39:35 +01:00
|
|
|
|
2014-11-11 18:34:06 +01:00
|
|
|
# Configure PHP.
|
|
|
|
- include: configure.yml
|