Have to run this in check mode too so we can get the variable output now.

This commit is contained in:
Kevin Fenzi 2018-06-14 01:28:20 +00:00
parent 4a6ba78d6d
commit 2b268d6e67

View file

@ -3,6 +3,7 @@
command: certbot certonly --keep -n --webroot --webroot-path /var/www/html/ -d {{','.join([site_name] + server_aliases)}}
run_once: true
register: certbot_output
check_node: no
changed_when: "not ('not yet due for renewal' in certbot_output.stderr)"
tags:
- letsencrypt