Skip to content

Commit

Permalink
Added domains to vars file & added staging certs
Browse files Browse the repository at this point in the history
  • Loading branch information
Mstiekema committed Jun 7, 2022
1 parent 706073a commit 26fca46
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ansible/roles/certbot/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,13 @@
--agree-tos
--email "[email protected]"
--keep-until-expiring
--cert-name {{ canonical_hostname }}
--cert-name {{ item }}
--dns-digitalocean
--dns-digitalocean-credentials /etc/letsencrypt/certbot-creds.ini
--domain "*.{{ canonical_hostname }}"
--domain "{{ canonical_hostname }}"
--domain "*.{% if 'staging' in group_names %}dev.{% endif %}{{ item }}"
--domain "{% if 'staging' in group_names %}dev.{% endif %}{{ item }}"
--deploy-hook "systemctl reload nginx"
with_items: {{ domains }}
register: "certbot_output"
changed_when: "'no action taken' not in certbot_output.stdout"

Expand Down
11 changes: 11 additions & 0 deletions ansible/roles/certbot/vars/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
domains:
- "svsticky.nl"
- "stickyutrecht.nl"
- "studieverenigingsticky.nl"
- "stichtingsticky.nl"
- "intro-cs.nl"
- "savadaba.nl"
- "dgdarc.com"
- "execut.nl"
- "execute.nl"

0 comments on commit 26fca46

Please sign in to comment.