Skip to content

Commit 26fca46

Browse files
committed
Added domains to vars file & added staging certs
1 parent 706073a commit 26fca46

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

ansible/roles/certbot/tasks/main.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,13 @@
6666
--agree-tos
6767
6868
--keep-until-expiring
69-
--cert-name {{ canonical_hostname }}
69+
--cert-name {{ item }}
7070
--dns-digitalocean
7171
--dns-digitalocean-credentials /etc/letsencrypt/certbot-creds.ini
72-
--domain "*.{{ canonical_hostname }}"
73-
--domain "{{ canonical_hostname }}"
72+
--domain "*.{% if 'staging' in group_names %}dev.{% endif %}{{ item }}"
73+
--domain "{% if 'staging' in group_names %}dev.{% endif %}{{ item }}"
7474
--deploy-hook "systemctl reload nginx"
75+
with_items: {{ domains }}
7576
register: "certbot_output"
7677
changed_when: "'no action taken' not in certbot_output.stdout"
7778

ansible/roles/certbot/vars/main.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
domains:
3+
- "svsticky.nl"
4+
- "stickyutrecht.nl"
5+
- "studieverenigingsticky.nl"
6+
- "stichtingsticky.nl"
7+
- "intro-cs.nl"
8+
- "savadaba.nl"
9+
- "dgdarc.com"
10+
- "execut.nl"
11+
- "execute.nl"

0 commit comments

Comments
 (0)