Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@ TIMESTAMP | Timestamp when the certificate was created.
dehydrated_accept_letsencrypt_terms: yes
dehydrated_contactemail: hostmaster@example.com
dehydrated_wellknown: /var/www/example.com/.well-known/acme-challenge
dehydrated_domains: |
example.com
dehydrated_domains:
- example.com
dehydrated_deploycert: |
service nginx reload
roles:
Expand All @@ -166,8 +166,8 @@ TIMESTAMP | Timestamp when the certificate was created.
dehydrated_lexicon_dns:
LEXICON_CLOUDFLARE_USERNAME: hostmaster@example.com
LEXICON_CLOUDFLARE_TOKEN: f7e7e...
dehydrated_domains: |
example.com
dehydrated_domains:
- example.com
dehydrated_deploycert: |
service nginx reload
roles:
Expand All @@ -179,10 +179,10 @@ TIMESTAMP | Timestamp when the certificate was created.
- hosts: servers
vars:
# [...]
dehydrated_domains: |
example.com www.example.com
sub.example.com
service.example.com
dehydrated_domains:
- example.com www.example.com
- sub.example.com
- service.example.com
dehydrated_deploycert:
example.com: |
service nginx reload
Expand Down
8 changes: 4 additions & 4 deletions molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,17 @@ provisioner:
http01:
dehydrated_contactemail: notused@le2.wtf
dehydrated_accept_letsencrypt_terms: true
dehydrated_domains: |
le2.wtf
dehydrated_domains:
- le2.wtf
dehydrated_wellknown: /tmp/www/.well-known/acme-challenge
dehydrated_use_lexicon: false
dehydrated_ca: http://10.77.77.1:4001/directory
dehydrated_cronjob: false
dns01:
dehydrated_contactemail: notused@le3.wtf
dehydrated_accept_letsencrypt_terms: true
dehydrated_domains: |
le3.wtf
dehydrated_domains:
- le3.wtf
dehydrated_challengetype: dns-01
dehydrated_ca: http://10.77.77.1:4001/directory
dehydrated_cronjob: false
Expand Down
7 changes: 5 additions & 2 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,15 @@
mode: 0600

- name: Generate dehydrated domains.txt
copy:
lineinfile:
dest: /etc/dehydrated/domains.txt
content: "{{ dehydrated_domains }}"
line: "{{ item }}"
regexp: '^{{ item }}'
create: true
owner: root
group: root
mode: 0600
loop: "{{ dehydrated_domains }}"
notify: run dehydrated

- import_tasks: hooks.yml
Expand Down