Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
php
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
webarch
php
Commits
ba921a06
Commit
ba921a06
authored
2 years ago
by
Chris Croome
Browse files
Options
Downloads
Patches
Plain Diff
WIP updates for
#1
parent
de9f1d48
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1
Merge Sury
Pipeline
#20866
failed
2 years ago
Stage: lint
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tasks/checks.yml
+9
-44
9 additions, 44 deletions
tasks/checks.yml
tasks/main.yml
+13
-0
13 additions, 0 deletions
tasks/main.yml
with
22 additions
and
44 deletions
tasks/checks.yml
+
9
−
44
View file @
ba921a06
...
...
@@ -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
...
This diff is collapsed.
Click to expand it.
tasks/main.yml
+
13
−
0
View file @
ba921a06
...
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment