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
44c09405
Commit
44c09405
authored
2 years ago
by
Chris Croome
Browse files
Options
Downloads
Patches
Plain Diff
WIP debug
parent
8d9e2393
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1
Merge Sury
Pipeline
#20895
passed
2 years ago
Stage: lint
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
tasks/checks.yml
+1
-9
1 addition, 9 deletions
tasks/checks.yml
tasks/modules.yml
+6
-6
6 additions, 6 deletions
tasks/modules.yml
tasks/version_checks.yml
+0
-18
0 additions, 18 deletions
tasks/version_checks.yml
with
7 additions
and
33 deletions
tasks/checks.yml
+
1
−
9
View file @
44c09405
...
...
@@ -24,13 +24,6 @@
-
ansible_distribution_release is regex("^stretch|buster|bullseye|bookworm|focal|bionic|jammy$")
fail_msg
:
"
The
Linux
distro
{{
ansible_distribution
}}
{{
ansible_distribution_release
}}
is
not
supported
by
this
role"
-
name
:
Generate an array of existing PHP versions
set_fact
:
php_versions_existing
:
"
{{
ansible_local.phpquery
|
map(attribute='versions')
}}"
-
name
:
debug fail
fail
:
-
name
:
Generate an array of existing PHP versions
set_fact
:
php_versions_existing
:
"
{{
php_versions_existing
|
default([])
}}
+
[
'{{
existing_version.key
}}'
]"
...
...
@@ -76,8 +69,7 @@
-
name
:
Debug defined SAPIs for proposed PHP versions
debug
:
msg
:
-
"
SAPI
{{
php_versions[version].sapis
}}
is
defined
for
PHP
{{
version
}}"
msg
:
"
SAPI
{{
php_versions[version].sapis
}}
is
defined
for
PHP
{{
version
}}"
verbosity
:
3
loop
:
"
{{
php_versions_proposed
}}"
loop_control
:
...
...
This diff is collapsed.
Click to expand it.
tasks/modules.yml
+
6
−
6
View file @
44c09405
...
...
@@ -4,18 +4,18 @@
-
name
:
"
Debug
the
existing
modules
for
SAPI
{{
sapi.key
}}
for
PHP
version
{{
version
}}"
debug
:
var
:
ansible_local.phpquery.versions[version].sapis[sapi.key].modules
var
:
ansible_local.phpquery.versions[version].sapis[sapi.key].modules
_enabled
verbosity
:
2
when
:
-
ansible_local.phpquery.versions[version].sapis[sapi.key].modules is defined
-
ansible_local.phpquery.versions[version].sapis[sapi.key].modules != []
-
ansible_local.phpquery.versions[version].sapis[sapi.key].modules
_enabled
is defined
-
ansible_local.phpquery.versions[version].sapis[sapi.key].modules
_enabled
!= []
-
name
:
"
Create
an
array
for
the
existing
modules
for
SAPI
{{
sapi.key
}}
for
PHP
version
{{
version
}}"
set_fact
:
php_modules_existing
:
"
{{
ansible_local.phpquery.versions[version].sapis[sapi.key].modules
|
sort
}}"
php_modules_existing
:
"
{{
ansible_local.phpquery.versions[version].sapis[sapi.key].modules
_existing
|
sort
}}"
when
:
-
ansible_local.phpquery.versions[version].sapis[sapi.key].modules is defined
-
ansible_local.phpquery.versions[version].sapis[sapi.key].modules != []
-
ansible_local.phpquery.versions[version].sapis[sapi.key].modules
_existing
is defined
-
ansible_local.phpquery.versions[version].sapis[sapi.key].modules
_existing
!= []
-
name
:
"
Create
an
array
for
the
proposed
modules
for
SAPI
{{
sapi.key
}}
for
PHP
version
{{
version
}}"
set_fact
:
...
...
This diff is collapsed.
Click to expand it.
tasks/version_checks.yml
deleted
100644 → 0
+
0
−
18
View file @
8d9e2393
---
-
name
:
Check PHP version
block
:
-
name
:
"
Debug
local
state
for
PHP
version
{{
ver.key
}}"
debug
:
msg
:
-
"
installed_version.key
{{
installed_version.key
}}"
-
"
proposed_version.key
{{
proposed_version.key
}}"
# when: installed_version.key.state != proposed_version.key.state
loop
:
"
{{
ansible_local.phpquery.versions
|
dict2items
}}"
loop_control
:
loop_var
:
installed_version
label
:
"
{{
proposed_version.key
}}"
tags
:
-
php
...
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