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

ansible-playbooks/general#85 Linting [skip-ci]

parent 8e56c705
No related branches found
No related tags found
No related merge requests found
......@@ -20,12 +20,12 @@
- name: Install New Cert via webroot
shell: certbot certonly --expand --non-interactive --config /etc/letsencrypt/{{ cert.domain }}.ini --cert-name {{ cert.domain }} --webroot-path /var/www/html --webroot
ignore_errors: true
ignore_errors: yes
when: groups.proxyserver is not defined or inventory_hostname not in groups.proxyserver
- name: Install New Cert via HaProxy
shell: certbot certonly --expand --non-interactive --config /etc/letsencrypt/{{ cert.domain }}.ini --http-01-port {{ port }} --preferred-challenges http-01 --cert-name {{ cert.domain }}
ignore_errors: true
ignore_errors: yes
when: groups.proxyserver is defined and inventory_hostname in groups.proxyserver
- name: Close Port
......@@ -44,7 +44,7 @@
name: '{{ item }}'
state: started
with_items: '{{ letsencrypt_pause_services|default([]) }}'
ignore_errors: true
ignore_errors: yes
tags:
- ApacheConfig
......
......@@ -27,4 +27,4 @@
- /usr/local/bin/certbot
- /usr/bin/certbot
ignore_errors: yes
failed_when: false
failed_when: no
......@@ -18,8 +18,8 @@
stat:
path: /etc/letsencrypt/live
register: letsencrypt_certs_available
failed_when: false
changed_when: false
failed_when: no
changed_when: no
tags:
- renew
......
......@@ -21,14 +21,14 @@
- name: Renew Existing Certs via webroot
shell: certbot renew --non-interactive --webroot-path /var/www/html --webroot
ignore_errors: true
ignore_errors: yes
register: renew_result
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: true
ignore_errors: yes
register: renew_result
changed_when: "'No renewals were attempted.' not in renew_result.stdout"
when: groups.proxyserver is defined and inventory_hostname in groups.proxyserver
......@@ -55,4 +55,4 @@
name: '{{ item }}'
state: started
with_items: '{{ letsencrypt_pause_services|default([]) }}'
ignore_errors: true
ignore_errors: yes
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