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
40362ab1
Verified
Commit
40362ab1
authored
1 year ago
by
Chris Croome
Browse files
Options
Downloads
Patches
Plain Diff
apt tweaks
parent
2098d705
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.pre-commit-config.yaml
+1
-1
1 addition, 1 deletion
.pre-commit-config.yaml
tasks/apt.yml
+4
-5
4 additions, 5 deletions
tasks/apt.yml
tasks/pkg.yml
+7
-0
7 additions, 0 deletions
tasks/pkg.yml
with
12 additions
and
6 deletions
.pre-commit-config.yaml
+
1
−
1
View file @
40362ab1
...
...
@@ -24,7 +24,7 @@ repos:
language
:
python
additional_dependencies
:
# https://pypi.org/project/ansible/
-
ansible==8.6.
0
-
ansible==8.6.
1
# https://github.com/kellyjonbrazil/jc/releases
-
jc==1.23.6
# https://github.com/jmespath/jmespath.py/tags
...
...
This diff is collapsed.
Click to expand it.
tasks/apt.yml
+
4
−
5
View file @
40362ab1
...
...
@@ -84,7 +84,7 @@
DEFAULT_MANAGED_STR
:
"
{{
php_ansible_managed
}}"
register
:
php_preferences
-
name
:
Up
grade everything
and autoclean and autoremove
when switching sources
-
name
:
Up
date apt cache
and autoclean and autoremove
block
:
-
name
:
Update apt cache
# noqa: no-handler
...
...
@@ -92,7 +92,7 @@
update_cache
:
true
cache_valid_time
:
0
-
name
:
Dist upgrad
e
# noqa: no-handler
-
name
:
Apt autoclean and autoremov
e
# noqa: no-handler
ansible.builtin.apt
:
upgrade
:
dist
autoclean
:
true
...
...
@@ -124,7 +124,7 @@
label
:
"
{{
path
|
basename
}}"
register
:
php_repo_absent
-
name
:
Up
grade everything
and autoclean and autoremove
when removing the sury repo
-
name
:
Up
date apt cache
and autoclean and autoremove
block
:
-
name
:
Update apt cache
# noqa: no-handler
...
...
@@ -132,9 +132,8 @@
update_cache
:
true
cache_valid_time
:
0
-
name
:
Dist upgrad
e
# noqa: no-handler
-
name
:
Apt autoclean and autoremov
e
# noqa: no-handler
ansible.builtin.apt
:
upgrade
:
dist
autoclean
:
true
autoremove
:
true
update_cache
:
false
...
...
This diff is collapsed.
Click to expand it.
tasks/pkg.yml
+
7
−
0
View file @
40362ab1
...
...
@@ -129,9 +129,16 @@
verbosity
:
"
{%
if
ansible_check_mode
|
bool
and
php_pkg_present
!=
[]
%}1{%
elif
php_pkg_present
!=
[]
%}2{%
else
%}3{%
endif
%}"
when
:
php_packages_removed_second_run.changed | bool
-
name
:
Update apt cache
ansible.builtin.apt
:
update_cache
:
true
cache_valid_time
:
0
-
name
:
Dist upgrade
ansible.builtin.apt
:
upgrade
:
dist
autoclean
:
true
autoremove
:
true
update_cache
:
false
register
:
php_dist_upgrade
...
...
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