Compare commits
No commits in common. "5e3b7a253d5da99bf0bf00d3f0d294eb7c652fdd" and "38fa0cc62439b54986c7c4dba4d34f82f97cd26c" have entirely different histories.
5e3b7a253d
...
38fa0cc624
3 changed files with 1 additions and 21 deletions
|
@ -1,10 +0,0 @@
|
||||||
# generate_cert.yml
|
|
||||||
---
|
|
||||||
- name: check if privkey exists
|
|
||||||
ansible.builtin.command: '[ -f "/etc/letsencrypt/live/{{ item.domain }}/README" ]'
|
|
||||||
register: result
|
|
||||||
ignore_errors: true
|
|
||||||
|
|
||||||
- name: generate certificate
|
|
||||||
ansible.builtin.command: 'certbot certonly --standalone --preferred-challenge http-01 -d {{ item.domain }} -m ejparker@actcur.com --agree-tos'
|
|
||||||
when: result is failure
|
|
|
@ -4,8 +4,3 @@
|
||||||
ansible.builtin.package:
|
ansible.builtin.package:
|
||||||
name: certbot
|
name: certbot
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
# generate certs for new domains
|
|
||||||
- include_tasks: generate_cert.yml
|
|
||||||
loop: "{{ domains }}"
|
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,2 @@
|
||||||
---
|
---
|
||||||
# vars file for nginx-ssl on privtorrents.actcur.com
|
# vars file for certbot
|
||||||
|
|
||||||
domains:
|
|
||||||
- domain: privtorrents.actcur.com
|
|
||||||
|
|
||||||
# end of file
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue