Initial commit
This commit is contained in:
commit
de1e0460fb
18
meta/main.yml
Normal file
18
meta/main.yml
Normal 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
12
tasks/main.yml
Normal 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
|
Loading…
Reference in New Issue
Block a user