Skip to content
Snippets Groups Projects
Commit ba921a06 authored by Chris Croome's avatar Chris Croome
Browse files

WIP updates for #1

parent de9f1d48
No related branches found
No related tags found
1 merge request!1Merge Sury
Pipeline #20866 failed
......@@ -148,52 +148,17 @@
when: ( php_versions_absent is defined ) and ( php_versions_absent != [] )
# - name: Debug fail
# fail:
# - name: Include version checks
# include_tasks: version_checks.yml
# loop: "{{ php_versions | dict2items }}"
# loop_control:
# loop_var: proposed_version
# label: "{{ proposed_version.key }}"
# - name: Set an array for the PHP packages with version numbers in their names
# set_fact:
# php_version_packages: "{{ php_version_packages | default([]) }} + [ 'php{{ php_version }}-{{ php_package }}' ]"
# loop: "{{ php_versioned_packages }}"
# loop_control:
# loop_var: php_package
# label: "{{ php_package }}"
# - name: Check and enable the www pool
# block:
# - name: Include www pool server variable checks
# include_tasks: pool_check.yml
# when: php_www_pool_pm == "dynamic"
# vars:
# php_pm: "{{ php_www_pool_pm }}"
# php_pm_max_children: "{{ php_www_pool_pm_max_children }}"
# php_pm_start_servers: "{{ php_www_pool_pm_start_servers }}"
# php_pm_min_spare_servers: "{{ php_www_pool_pm_min_spare_servers }}"
# php_pm_max_spare_servers: "{{ php_www_pool_pm_max_spare_servers }}"
# - name: Include www pool server variable checks
# include_tasks: pool_check.yml
# when: php_www_pool_pm == "dynamic"
# vars:
# php_pm: "{{ php_www_pool_pm }}"
# php_pm_max_children: "{{ php_www_pool_pm_max_children }}"
# php_pm_start_servers: "{{ php_www_pool_pm_start_servers }}"
# php_pm_min_spare_servers: "{{ php_www_pool_pm_min_spare_servers }}"
# php_pm_max_spare_servers: "{{ php_www_pool_pm_max_spare_servers }}"
# when: ( php_www_pool_enabled is not defined ) or ( php_www_pool_enabled is defined and php_www_pool_enabled )
# - name: Check the PHP-FPM configuration
# command: "php-fpm{{ php_version }} --test"
# check_mode: false
# changed_when: false
# register: php_test
# failed_when: ( "test is successful" not in php_test.stderr )
# notify: Restart php-fpm
# - name: Check that /usr/bin/crontab exists
# stat:
# path: /usr/bin/crontab
# register: php_crontab
tags:
- php
...
......@@ -66,6 +66,19 @@
state: present
update_cache: true
# TODO
#
# Remove directories for SAPIs that have state absent
#
# Check the ansible_local.phpquery modules against the php_versions modules_enabled and modules disabled
# and enable / disable modules as required
#
# Write php.ini files
#
# Use update-alternatives to set the default version
#
# Disable the www pool for all versions but the default PHP version
- name: Debug fail
fail:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment