forked from bitlair/ansible
Add common roles from polyfloyd's playbookds
This commit is contained in:
parent
1332f49101
commit
e43ec3229f
23 changed files with 694 additions and 0 deletions
11
roles/acme/tasks/san_domains_loop.yaml
Normal file
11
roles/acme/tasks/san_domains_loop.yaml
Normal file
|
@ -0,0 +1,11 @@
|
|||
---
|
||||
- stat:
|
||||
path: "/var/lib/dehydrated/certs/{{ domains[0] }}"
|
||||
register: cert_stat
|
||||
|
||||
- file:
|
||||
state: link
|
||||
path: "/var/lib/dehydrated/certs/{{ item }}"
|
||||
src: "/var/lib/dehydrated/certs/{{ domains[0] }}"
|
||||
loop: "{{ domains[1:] }}"
|
||||
when: cert_stat.stat.exists == True
|
Loading…
Add table
Add a link
Reference in a new issue