ansible-role-php/tasks/main.yml

30 lines
707 B
YAML
Raw Normal View History

---
# Variable setup.
2014-04-23 18:26:37 +02:00
- name: Include OS-specific variables.
include_vars: "{{ ansible_os_family }}.yml"
- name: Define php_packages.
2014-09-21 06:15:45 +02:00
set_fact:
php_packages: "{{ __php_packages | list }}"
when: php_packages is not defined
- name: Define php_webserver_daemon.
set_fact:
php_webserver_daemon: "{{ __php_webserver_daemon }}"
when: php_webserver_daemon is not defined
- name: Define php_conf_path.
set_fact:
php_conf_path: "{{ __php_conf_path }}"
when: php_conf_path is not defined
# Setup/install tasks.
- include: setup-RedHat.yml
when: ansible_os_family == 'RedHat'
2014-04-23 18:26:37 +02:00
- include: setup-Debian.yml
2014-04-23 18:26:37 +02:00
when: ansible_os_family == 'Debian'
# Configure PHP.
- include: configure.yml