Have to run this in check mode too so we can get the variable output now.
This commit is contained in:
parent
4a6ba78d6d
commit
2b268d6e67
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue