Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
apache
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
apache
Commits
1a3779c0
Verified
Commit
1a3779c0
authored
2 months ago
by
Chris Croome
Browse files
Options
Downloads
Patches
Plain Diff
Default to using EC cert for Exim
parent
fe599bec
No related branches found
Branches containing commit
Tags
2.4.0
Tags containing commit
No related merge requests found
Pipeline
#36276
passed
2 months ago
Stage: trixie
Stage: bookworm
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tasks/md_cert_cp.yml
+22
-1
22 additions, 1 deletion
tasks/md_cert_cp.yml
with
22 additions
and
1 deletion
tasks/md_cert_cp.yml
+
22
−
1
View file @
1a3779c0
...
...
@@ -21,7 +21,26 @@
path
:
"
{{
apache_md_cert_cp.pubcert.src
}}"
register
:
apache_md_cert_cp_pubcert_src
-
name
:
Copy the private key and certificate when they exist
-
name
:
Query OpenSSL X.509 certificate
block
:
-
name
:
"
Query
OpenSSL
X.509
certificate
{{
apache_md_cert_cp.privkey.src
}}"
community.crypto.x509_certificate_info
:
path
:
"
{{
apache_md_cert_cp.pubcert.src
}}"
register
:
apache_md_cert_cp_pubcert_info
-
name
:
"
Debug
all
the
OpenSSL
X.509
certificate
info
for
{{
apache_md_cert_cp.privkey.src
}}"
ansible.builtin.debug
:
var
:
apache_md_cert_cp_pubcert_info
verbosity
:
"
{%
if
ansible_check_mode
|
bool
or
ansible_diff_mode
|
bool
%}0{%
else
%}1{%
endif
%}"
when
:
-
apache_md_cert_cp_privkey_src.stat.exists | bool
-
apache_md_cert_cp_privkey_src.stat.size >
0
-
apache_md_cert_cp_pubcert_src.stat.exists | bool
-
apache_md_cert_cp_pubcert_src.stat.size >
0
-
name
:
Copy the private key and certificate when they exist and the cert is valid
block
:
-
name
:
"
Copy
the
Apache
mod_md
private
key
for
{{
apache_md_cert_cp.name
}}"
...
...
@@ -87,6 +106,8 @@
-
apache_md_cert_cp_privkey_src.stat.size >
0
-
apache_md_cert_cp_pubcert_src.stat.exists | bool
-
apache_md_cert_cp_pubcert_src.stat.size >
0
-
not apache_md_cert_cp_pubcert_info.expired | bool
-
not apache_md_cert_cp_pubcert_info.failed | bool
-
name
:
"
Crontab
absent
for
Apache
mod_md
cert
script
absent
for
{{
apache_md_cert_cp.name
}}"
ansible.builtin.cron
:
...
...
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