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
3276195c
Verified
Commit
3276195c
authored
1 year ago
by
Chris Croome
Browse files
Options
Downloads
Patches
Plain Diff
fix sources diff
parent
04868c03
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#32784
passed
1 year ago
Stage: bookworm
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tasks/apt.yml
+8
-22
8 additions, 22 deletions
tasks/apt.yml
with
8 additions
and
22 deletions
tasks/apt.yml
+
8
−
22
View file @
3276195c
...
...
@@ -11,6 +11,11 @@
-
name
:
Sury PHP apt repo present
block
:
-
name
:
Python3 Debian present for deb822 module
ansible.builtin.apt
:
pkg
:
python3-debian
state
:
present
-
name
:
Apt keyrings directory present
ansible.builtin.file
:
path
:
/etc/apt/keyrings
...
...
@@ -93,20 +98,6 @@
uris
:
https://packages.sury.org/php/
register
:
php_sources
# - name: Stat PHP repository sources file
# ansible.builtin.stat:
# path: /etc/apt/sources.list.d/php.sources
# register: php_sources_path
# - name: Read the PHP repository sources file
# ansible.builtin.include_tasks: sources_file.yml
# when: php_sources_path.stat.exists | bool
# - name: Set a fact for the updated PHP repository sources file contents
# ansible.builtin.set_fact:
# php_sources_contents_updated: "{{ php_sources_contents }}"
# when: php_sources_contents is defined
-
name
:
Debug php_sources
ansible.builtin.debug
:
var
:
php_sources
...
...
@@ -115,16 +106,11 @@
-
name
:
Diff PHP repository sources file update
ansible.utils.fact_diff
:
before
:
"
{{
php_sources_contents_prior
}}"
after
:
"
{{
php_sources_contents_updated
}}"
vars
:
php_sources_contents_updated
:
"
{{
php_sources.results.repo
|
string
|
community.general.jc('ini')
}}"
check_mode
:
false
changed_when
:
false
after
:
"
{{
php_sources.repo
|
string
|
community.general.jc('ini')
}}"
when
:
-
ansible_diff_mode | bool
-
( ansible_check_mode | bool ) or (
ansible_diff_mode | bool
)
-
php_sources_contents_prior is defined
-
php_sources_contents_updated is defined
-
php_sources_contents_prior != php_sources_contents_updated
-
php_sources.repo is defined
-
name
:
PHP apt preferences present
ansible.builtin.template
:
...
...
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