Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
lockss-playbook
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
MSU Libraries
Public
lockss-playbook
Commits
7a0d5c2a
Commit
7a0d5c2a
authored
5 years ago
by
McConahy, Renee Margaret
Browse files
Options
Downloads
Patches
Plain Diff
http_frontend: Make check mode usable.
parent
7e353257
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
roles/http_frontend/tasks/main.yml
+35
-30
35 additions, 30 deletions
roles/http_frontend/tasks/main.yml
with
35 additions
and
30 deletions
roles/http_frontend/tasks/main.yml
+
35
−
30
View file @
7a0d5c2a
...
...
@@ -17,23 +17,26 @@
changed_when
:
false
when
:
tmpdir.path is defined
-
name
:
Register checksum of httpd configuration file.
stat
:
path
:
"
{{
tmpdir.path
}}/httpd-frontend.conf"
checksum_algorithm
:
sha256
register
:
r
-
name
:
Determine name for httpd configuration file.
block
:
-
name
:
Register checksum of httpd configuration file.
stat
:
path
:
"
{{
tmpdir.path
}}/httpd-frontend.conf"
checksum_algorithm
:
sha256
register
:
r
-
name
:
Calculate name.
set_fact
:
_r2
:
"
{{
http_frontend_name
}}_
\
httpd_frontend_config-
\
{{
r.stat.checksum
}}"
-
name
:
Calculate shorter name.
set_fact
:
httpd_frontend_config_name
:
"
{{
_r2
|
regex_replace('(.{,64}).*',
'
\\
1')
}}"
when
:
tmpdir.path is defined
-
name
:
Calculate name for configuration.
set_fact
:
_r2
:
"
{{
http_frontend_name
}}_
\
httpd_frontend_config-
\
{{
r.stat.checksum
}}"
-
name
:
Calculate shorter name for configuration.
set_fact
:
httpd_frontend_config_name
:
"
{{
_r2
|
regex_replace('(.{,64}).*',
'
\\
1')
}}"
-
name
:
Copy landing page.
template
:
dest
:
"
{{
tmpdir.path
}}/index.html"
...
...
@@ -43,23 +46,25 @@
changed_when
:
false
when
:
tmpdir.path is defined
-
name
:
Register checksum of landing page.
stat
:
path
:
"
{{
tmpdir.path
}}/index.html"
checksum_algorithm
:
sha256
register
:
r
-
name
:
Determine name for landing page configuration file.
block
:
-
name
:
Register checksum of landing page.
stat
:
path
:
"
{{
tmpdir.path
}}/index.html"
checksum_algorithm
:
sha256
register
:
r
-
name
:
Calculate name.
set_fact
:
_r2
:
"
{{
http_frontend_name
}}_
\
index-
\
{{
r.stat.checksum
}}"
-
name
:
Calculate shorter name.
set_fact
:
index_name
:
"
{{
_r2
|
regex_replace('(.{,64}).*',
'
\\
1')
}}"
when
:
tmpdir.path is defined
-
name
:
Calculate name for configuration.
set_fact
:
_r2
:
"
{{
http_frontend_name
}}_
\
index-
\
{{
r.stat.checksum
}}"
-
name
:
Calculate shorter name for configuration.
set_fact
:
index_name
:
"
{{
_r2
|
regex_replace('(.{,64}).*',
'
\\
1')
}}"
-
name
:
Copy Dockerfile.
copy
:
dest
:
"
{{
tmpdir.path
}}/Dockerfile"
...
...
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