Skip to content
Snippets Groups Projects
Commit 9c85a480 authored by jurgenhaas's avatar jurgenhaas
Browse files

ansible-playbooks/general#85 Fix some conditionals

parent 18bc106d
No related branches found
No related tags found
No related merge requests found
......@@ -24,14 +24,14 @@
shell: certbot renew --non-interactive --webroot-path /var/www/html --webroot
ignore_errors: yes
register: renew_result
changed_when: yes and 'No renewals were attempted.' not in renew_result.stdout
changed_when: '"No renewals were attempted." not in renew_result.stdout'
when: groups.proxyserver is not defined or inventory_hostname not in groups.proxyserver
- name: Renew Existing Certs via HaProxy
shell: certbot renew --non-interactive --http-01-port {{ port }} --preferred-challenges http-01
ignore_errors: yes
register: renew_result
changed_when: yes and 'No renewals were attempted.' not in renew_result.stdout
changed_when: '"No renewals were attempted." not in renew_result.stdout'
when: groups.proxyserver is defined and inventory_hostname in groups.proxyserver
- name: Close Port
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment