Commit 839880e2 authored by okhin's avatar okhin 🚴

AlternC plugin for interacting with Certbot local config

parent bb2b5f10
Pipeline #2537 failed with stages
---
- 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
{
"{{ alternc_domain_root }}": {
"server": "{{ alternc_panel_url }}",
"token": "{{ alternc_token.content | b64decode | from_json | json_query('token') }}"
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment