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
cadade65
Verified
Commit
cadade65
authored
11 months ago
by
Chris Croome
Browse files
Options
Downloads
Patches
Plain Diff
test fix for file config sections var
parent
58e3faa4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#33283
failed
11 months ago
Stage: bookworm
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tasks/file_edited.yml
+8
-1
8 additions, 1 deletion
tasks/file_edited.yml
tasks/file_templated.yml
+5
-1
5 additions, 1 deletion
tasks/file_templated.yml
with
13 additions
and
2 deletions
tasks/file_edited.yml
+
8
−
1
View file @
cadade65
...
...
@@ -93,23 +93,30 @@
map('ansible.builtin.type_debug') |
unique)[0] == "dict"
-%}true{%- else -%}false{%- endif -%}
when
:
php_conf_file_proposed_vars | length >
0
-
name
:
Debug the proposed PHP configuration file sections variables
ansible.builtin.debug
:
var
:
php_conf_file_proposed_sections
verbosity
:
"
{%
if
ansible_check_mode
|
bool
%}1{%
else
%}2{%
endif
%}"
when
:
php_conf_file_proposed_sections is defined
-
name
:
Debug the proposed PHP configuration file sections
ansible.builtin.debug
:
var
:
php_conf_file_proposed_vars.keys()
verbosity
:
"
{%
if
ansible_check_mode
|
bool
%}1{%
else
%}2{%
endif
%}"
when
:
php_conf_file_proposed_sections | bool
when
:
-
php_conf_file_proposed_sections is defined
-
php_conf_file_proposed_sections | bool
-
name
:
When the existing files has sections and proposed config also has sections
ansible.builtin.assert
:
that
:
-
php_conf_file_existing_sections == php_conf_file_proposed_sections
quiet
:
"
{%
if
ansible_verbosity
==
0
%}true{%
else
%}false{%
endif
%}"
when
:
-
php_conf_file_existing_sections is defined
-
php_conf_file_proposed_sections is defined
-
name
:
Set facts for the PHP configuration file
ansible.builtin.set_fact
:
...
...
This diff is collapsed.
Click to expand it.
tasks/file_templated.yml
+
5
−
1
View file @
cadade65
...
...
@@ -54,17 +54,21 @@
map('ansible.builtin.type_debug') |
unique)[0] == "dict"
-%}true{%- else -%}false{%- endif -%}
when
:
php_conf_file_proposed_vars | length >
0
-
name
:
Debug the proposed PHP configuration file sections variables
ansible.builtin.debug
:
var
:
php_conf_file_proposed_sections
verbosity
:
"
{%
if
ansible_check_mode
|
bool
%}1{%
else
%}2{%
endif
%}"
when
:
php_conf_file_proposed_sections is defined
-
name
:
Debug the proposed PHP configuration file sections
ansible.builtin.debug
:
var
:
php_conf_file_proposed_vars.keys()
verbosity
:
"
{%
if
ansible_check_mode
|
bool
%}1{%
else
%}2{%
endif
%}"
when
:
php_conf_file_proposed_sections | bool
when
:
-
php_conf_file_proposed_sections is defined
-
php_conf_file_proposed_sections | bool
-
name
:
File backup present
ansible.builtin.copy
:
...
...
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