Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
alternc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LQDN Adminsys
piops-roles
alternc
Commits
839880e2
Commit
839880e2
authored
Apr 03, 2019
by
Okhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
AlternC plugin for interacting with Certbot local config
parent
bb2b5f10
Pipeline
#2537
failed with stages
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
0 deletions
+35
-0
tasks/main.yml
tasks/main.yml
+29
-0
templates/alternc-plugin.conf.j2
templates/alternc-plugin.conf.j2
+6
-0
No files found.
tasks/main.yml
0 → 100644
View file @
839880e2
---
-
name
:
install alternc certbot scripts
get_url
:
dest
:
"
/usr/local/bin/{{
item.filename
}}"
mode
:
0755
url
:
"
{{
item.url
}}"
checksum
:
"
{{
item.checksum
}}"
loop
:
-
url
:
https://www.octopuce.fr/wp-content/uploads/certbot-auth.php.txt
checksum
:
sha256:0637087244b894c73882247ca4f594f659534af501991c65442ce4ae7c9a68cf
filename
:
certbot-auth.php
-
url
:
https://www.octopuce.fr/wp-content/uploads/certbot-cleanup.php.txt
checksum
:
sha256:844ebf9494c443265b40d855fc03f5f34d8124686a2bd21db9675cca9e3171a5
filename
:
certbot-cleanup.php
-
name
:
get a token for alternc certbot plugin
get_url
:
dest
:
"
/etc/letsencrypt/alternc.token"
url
:
"
{{
alternc_token_url
}}"
-
name
:
recover the token from file
slurp
:
src
:
"
/etc/letsencrypt/alternc.token"
register
:
alternc_token
-
name
:
create a configuration file for the certbot plugin
template
:
dest
:
"
/etc/letsencrypt/alternc-plugin.conf"
src
:
templates/alternc-plugin.conf.j2
templates/alternc-plugin.conf.j2
0 → 100644
View file @
839880e2
{
"{{ alternc_domain_root }}": {
"server": "{{ alternc_panel_url }}",
"token": "{{ alternc_token.content | b64decode | from_json | json_query('token') }}"
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment