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
35f1abf0
Commit
35f1abf0
authored
3 years ago
by
Chris Croome
Browse files
Options
Downloads
Patches
Plain Diff
Debug test
parent
d88a6722
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1
Merge Sury
Pipeline
#20593
failed
3 years ago
Stage: lint
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
tasks/checks.yml
+10
-10
10 additions, 10 deletions
tasks/checks.yml
tasks/main.yml
+2
-2
2 additions, 2 deletions
tasks/main.yml
tasks/present.yml
+7
-0
7 additions, 0 deletions
tasks/present.yml
with
19 additions
and
12 deletions
tasks/checks.yml
+
10
−
10
View file @
35f1abf0
...
@@ -25,36 +25,36 @@
...
@@ -25,36 +25,36 @@
-
name
:
Generate an array of existing PHP versions
-
name
:
Generate an array of existing PHP versions
set_fact
:
set_fact
:
php_
existing_versions
:
"
{{
php_existing_versions
|
default([])
}}
+
[
'{{
existing_version.key
}}'
]"
php_
versions_existing
:
"
{{
php_versions_existing
|
default([])
}}
+
[
'{{
existing_version.key
}}'
]"
when
:
existing_version.value.state == "present"
when
:
existing_version.value.state == "present"
loop
:
"
{{
ansible_local.phpquery.versions
|
dict2items
}}"
loop
:
"
{{
ansible_local.phpquery.versions
|
dict2items
}}"
loop_control
:
loop_control
:
loop_var
:
existing_version
loop_var
:
existing_version
label
:
"
{{
existing_version.key
}}"
label
:
"
{{
existing_version.key
}}"
-
name
:
Debug php_
existing_versions
array
-
name
:
Debug php_
versions_existing
array
debug
:
debug
:
var
:
php_
existing_versions
var
:
php_
versions_existing
verbosity
:
2
verbosity
:
2
-
name
:
Generate an array of proposed PHP versions
-
name
:
Generate an array of proposed PHP versions
set_fact
:
set_fact
:
php_
proposed_versions
:
"
{{
php_proposed_versions
|
default([])
}}
+
[
'{{
proposed_version.key
}}'
]"
php_
versions_proposed
:
"
{{
php_versions_proposed
|
default([])
}}
+
[
'{{
proposed_version.key
}}'
]"
when
:
proposed_version.value.state == "present"
when
:
proposed_version.value.state == "present"
loop
:
"
{{
php_versions
|
dict2items
}}"
loop
:
"
{{
php_versions
|
dict2items
}}"
loop_control
:
loop_control
:
loop_var
:
proposed_version
loop_var
:
proposed_version
label
:
"
{{
proposed_version.key
}}"
label
:
"
{{
proposed_version.key
}}"
-
name
:
Debug php_
proposed_versions
array
-
name
:
Debug php_
versions_proposed
array
debug
:
debug
:
var
:
php_
proposed_versions
var
:
php_
versions_proposed
verbosity
:
2
verbosity
:
2
-
name
:
Generate an array of PHP versions to remove
-
name
:
Generate an array of PHP versions to remove
set_fact
:
set_fact
:
php_versions_remove
:
"
{{
php_
existing_versions
|
difference(php_
proposed_versions
)
}}"
php_versions_remove
:
"
{{
php_
versions_existing
|
difference(php_
versions_proposed
)
}}"
when
:
( php_
existing_versions
| difference(php_
proposed_versions
) ) != []
when
:
( php_
versions_existing
| difference(php_
versions_proposed
) ) != []
-
name
:
Debug php_versions_remove array
-
name
:
Debug php_versions_remove array
debug
:
debug
:
...
@@ -71,11 +71,11 @@
...
@@ -71,11 +71,11 @@
# - name: Include SAPI checks for PHP proposed versions
# - name: Include SAPI checks for PHP proposed versions
# include_tasks: sapi_checks.yml
# include_tasks: sapi_checks.yml
# loop: "{{ php_
proposed_versions
}}"
# loop: "{{ php_
versions_proposed
}}"
# loop_control:
# loop_control:
# loop_var: version
# loop_var: version
# label: "{{ version }}"
# label: "{{ version }}"
# when: ( php_
proposed_versions
is defined ) and ( php_
proposed_versions
!= [] )
# when: ( php_
versions_proposed
is defined ) and ( php_
versions_proposed
!= [] )
# - name: Debug fail
# - name: Debug fail
# fail:
# fail:
...
...
This diff is collapsed.
Click to expand it.
tasks/main.yml
+
2
−
2
View file @
35f1abf0
...
@@ -21,11 +21,11 @@
...
@@ -21,11 +21,11 @@
-
name
:
Include package install tasks
-
name
:
Include package install tasks
include_tasks
:
present.yml
include_tasks
:
present.yml
loop
:
"
{{
php_versions_
install
}}"
loop
:
"
{{
php_versions_
proposed
}}"
loop_control
:
loop_control
:
loop_var
:
version
loop_var
:
version
label
:
"
{{
version
}}"
label
:
"
{{
version
}}"
when
:
( php_versions_
install
is defined ) and ( php_versions_
install
!= [] )
when
:
( php_versions_
proposed
is defined ) and ( php_versions_
proposed
!= [] )
-
name
:
Debug fail
-
name
:
Debug fail
fail
:
fail
:
...
...
This diff is collapsed.
Click to expand it.
tasks/present.yml
0 → 100644
+
7
−
0
View file @
35f1abf0
---
-
name
:
PHP packages present
block
:
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