Initial commit
This commit is contained in:
commit
de1e0460fb
2 changed files with 30 additions and 0 deletions
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…
Add table
Add a link
Reference in a new issue