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

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