looks like certbot outputs this in stderr

This commit is contained in:
Kevin Fenzi 2018-06-14 00:56:45 +00:00
parent 7e8decbfcf
commit 110df57328

View file

@ -3,7 +3,7 @@
command: certbot certonly --keep -n --webroot --webroot-path /var/www/html/ -d {{','.join([site_name] + server_aliases)}} command: certbot certonly --keep -n --webroot --webroot-path /var/www/html/ -d {{','.join([site_name] + server_aliases)}}
run_once: true run_once: true
register: certbot_output register: certbot_output
changed_when: "not ('no action taken' in certbot_output)" changed_when: "not ('no action taken' in certbot_output.stderr)"
tags: tags:
- letsencrypt - letsencrypt
@ -12,7 +12,7 @@
delegate_to: certgetter01.phx2.fedoraproject.org delegate_to: certgetter01.phx2.fedoraproject.org
command: cat /etc/letsencrypt/live/{{site_name}}/cert.pem command: cat /etc/letsencrypt/live/{{site_name}}/cert.pem
register: certbot_certificate register: certbot_certificate
when: "not ('no action taken' in certbot_output)" when: "not ('no action taken' in certbot_output.stderr)"
tags: tags:
- letsencrypt - letsencrypt
@ -20,7 +20,7 @@
delegate_to: certgetter01.phx2.fedoraproject.org delegate_to: certgetter01.phx2.fedoraproject.org
command: cat /etc/letsencrypt/live/{{site_name}}/chain.pem command: cat /etc/letsencrypt/live/{{site_name}}/chain.pem
register: certbot_chain register: certbot_chain
when: "not ('no action taken' in certbot_output)" when: "not ('no action taken' in certbot_output.stderr)"
tags: tags:
- letsencrypt - letsencrypt
@ -28,7 +28,7 @@
delegate_to: certgetter01.phx2.fedoraproject.org delegate_to: certgetter01.phx2.fedoraproject.org
command: cat /etc/letsencrypt/live/{{site_name}}/privkey.pem command: cat /etc/letsencrypt/live/{{site_name}}/privkey.pem
register: certbot_key register: certbot_key
when: "not ('no action taken' in certbot_output)" when: "not ('no action taken' in certbot_output.stderr)"
tags: tags:
- letsencrypt - letsencrypt
@ -39,7 +39,7 @@
owner=root owner=root
group=root group=root
mode=0644 mode=0644
when: "not ('no action taken' in certbot_output)" when: "not ('no action taken' in certbot_output.stderr)"
notify: notify:
- reload proxyhttpd - reload proxyhttpd
tags: tags:
@ -52,7 +52,7 @@
owner=root owner=root
group=root group=root
mode=0644 mode=0644
when: "not ('no action taken' in certbot_output)" when: "not ('no action taken' in certbot_output.stderr)"
notify: notify:
- reload proxyhttpd - reload proxyhttpd
tags: tags:
@ -65,7 +65,7 @@
owner=root owner=root
group=root group=root
mode=0600 mode=0600
when: "not ('no action taken' in certbot_output)" when: "not ('no action taken' in certbot_output.stderr)"
notify: notify:
- reload proxyhttpd - reload proxyhttpd
tags: tags: