looks like certbot outputs this in stderr
This commit is contained in:
parent
7e8decbfcf
commit
110df57328
1 changed files with 7 additions and 7 deletions
|
@ -3,7 +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
|
||||
changed_when: "not ('no action taken' in certbot_output)"
|
||||
changed_when: "not ('no action taken' in certbot_output.stderr)"
|
||||
tags:
|
||||
- letsencrypt
|
||||
|
||||
|
@ -12,7 +12,7 @@
|
|||
delegate_to: certgetter01.phx2.fedoraproject.org
|
||||
command: cat /etc/letsencrypt/live/{{site_name}}/cert.pem
|
||||
register: certbot_certificate
|
||||
when: "not ('no action taken' in certbot_output)"
|
||||
when: "not ('no action taken' in certbot_output.stderr)"
|
||||
tags:
|
||||
- letsencrypt
|
||||
|
||||
|
@ -20,7 +20,7 @@
|
|||
delegate_to: certgetter01.phx2.fedoraproject.org
|
||||
command: cat /etc/letsencrypt/live/{{site_name}}/chain.pem
|
||||
register: certbot_chain
|
||||
when: "not ('no action taken' in certbot_output)"
|
||||
when: "not ('no action taken' in certbot_output.stderr)"
|
||||
tags:
|
||||
- letsencrypt
|
||||
|
||||
|
@ -28,7 +28,7 @@
|
|||
delegate_to: certgetter01.phx2.fedoraproject.org
|
||||
command: cat /etc/letsencrypt/live/{{site_name}}/privkey.pem
|
||||
register: certbot_key
|
||||
when: "not ('no action taken' in certbot_output)"
|
||||
when: "not ('no action taken' in certbot_output.stderr)"
|
||||
tags:
|
||||
- letsencrypt
|
||||
|
||||
|
@ -39,7 +39,7 @@
|
|||
owner=root
|
||||
group=root
|
||||
mode=0644
|
||||
when: "not ('no action taken' in certbot_output)"
|
||||
when: "not ('no action taken' in certbot_output.stderr)"
|
||||
notify:
|
||||
- reload proxyhttpd
|
||||
tags:
|
||||
|
@ -52,7 +52,7 @@
|
|||
owner=root
|
||||
group=root
|
||||
mode=0644
|
||||
when: "not ('no action taken' in certbot_output)"
|
||||
when: "not ('no action taken' in certbot_output.stderr)"
|
||||
notify:
|
||||
- reload proxyhttpd
|
||||
tags:
|
||||
|
@ -65,7 +65,7 @@
|
|||
owner=root
|
||||
group=root
|
||||
mode=0600
|
||||
when: "not ('no action taken' in certbot_output)"
|
||||
when: "not ('no action taken' in certbot_output.stderr)"
|
||||
notify:
|
||||
- reload proxyhttpd
|
||||
tags:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue