Initial commit

This commit is contained in:
nemunaire 2023-03-15 01:29:21 +01:00
commit de1e0460fb
2 changed files with 30 additions and 0 deletions

18
meta/main.yml Normal file
View File

@ -0,0 +1,18 @@
---
dependencies: []
galaxy_info:
role_name: tls-domain-dehydrated
author: 'Pierre-Olivier Mercier <nemunaire+iac@nemunai.re>'
description: Role to obtain a certificate through dehydrated
license: GPL-3.0-or-later
min_ansible_version: 2.9
platforms:
- name: Alpine
versions:
- all
- name: Debian
versions:
- all
galaxy_tags: []

12
tasks/main.yml Normal file
View File

@ -0,0 +1,12 @@
---
- name: Append domains to dehydrated config
lineinfile:
path: /etc/dehydrated/domains.txt
regexp: '({{ domains | join("|") }})'
line: '{{ domains | join(" ") }}'
register: config
- name: Call dehydrated to create certificates
shell:
cmd: dehydrated -c
when: config.changed