Let's try to get certbot to provide a cert for ci-cc
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
parent
cf997f221e
commit
ae88d14aeb
1 changed files with 24 additions and 0 deletions
|
@ -49,3 +49,27 @@
|
||||||
service: name={{ item }} enabled=yes state=started
|
service: name={{ item }} enabled=yes state=started
|
||||||
with_items:
|
with_items:
|
||||||
- fedmsg-hub
|
- fedmsg-hub
|
||||||
|
|
||||||
|
- name: letsencrypt cert
|
||||||
|
include_role: name=certbot
|
||||||
|
tags:
|
||||||
|
- config
|
||||||
|
- certbot
|
||||||
|
|
||||||
|
- name: Check that cert file exists
|
||||||
|
stat:
|
||||||
|
path: "/etc/letsencrypt/live/resultsdb.ci.centos.org/cert.pem"
|
||||||
|
register: stat_cert
|
||||||
|
tags:
|
||||||
|
- config
|
||||||
|
- certbot
|
||||||
|
|
||||||
|
- name: Should admin run certbot?
|
||||||
|
fail:
|
||||||
|
msg: Please see roles/certbot/README step (2) and manually run certbot
|
||||||
|
when:
|
||||||
|
- stat_cert.stat.exists == False
|
||||||
|
tags:
|
||||||
|
- config
|
||||||
|
- certbot
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue