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
306d00c9
Commit
306d00c9
authored
2 years ago
by
Chris Croome
Browse files
Options
Downloads
Patches
Plain Diff
remove config files when removing versions
parent
c8e17fc6
No related branches found
No related tags found
1 merge request
!1
Merge Sury
Pipeline
#20578
failed
2 years ago
Stage: lint
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
defaults/main.yml
+2
-2
2 additions, 2 deletions
defaults/main.yml
tasks/absent.yml
+11
-1
11 additions, 1 deletion
tasks/absent.yml
tasks/checks.yml
+3
-0
3 additions, 0 deletions
tasks/checks.yml
with
16 additions
and
3 deletions
defaults/main.yml
+
2
−
2
View file @
306d00c9
...
...
@@ -4,14 +4,14 @@ php_dpkg: /usr/bin/dpkg
php_phpquery
:
/usr/sbin/phpquery
php_versions
:
'
8.1'
:
state
:
ab
sent
state
:
pre
sent
sapis
:
apache2
:
state
:
absent
cli
:
state
:
present
fpm
:
state
:
pre
sent
state
:
ab
sent
phpdbg
:
state
:
absent
'
8.0'
:
...
...
This diff is collapsed.
Click to expand it.
tasks/absent.yml
+
11
−
1
View file @
306d00c9
...
...
@@ -6,12 +6,22 @@
apt
:
pkg
:
"
php{{
version
}}*"
state
:
absent
purge
:
true
autoclean
:
true
autoremove
:
true
loop
:
"
{{
php_versions_remove
}}"
loop_control
:
loop_var
:
version
label
:
"
php{{
version
}}"
label
:
"
{{
version
}}"
-
name
:
PHP config files absent
file
:
path
:
"
/etc/php/{{
version
}}/"
state
:
absent
loop
:
"
{{
php_versions_remove
}}"
loop_control
:
loop_var
:
version
label
:
"
{{
version
}}"
tags
:
-
php
...
...
This diff is collapsed.
Click to expand it.
tasks/checks.yml
+
3
−
0
View file @
306d00c9
...
...
@@ -2,6 +2,9 @@
-
name
:
PHP checks
block
:
# TODO
# - Check that when a version SAPI is set to present the version is also set to present
# - Check that when a version is set to absent the SAPIs are also set to absent, if the state is set
-
name
:
Check that depreciated variables are not used
assert
:
that
:
...
...
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