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:
Pierre-Yves Chibon 2018-10-31 16:03:43 +01:00
parent cf997f221e
commit ae88d14aeb

View file

@ -49,3 +49,27 @@
service: name={{ item }} enabled=yes state=started
with_items:
- 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