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

ansible-playbooks/general#95 Do not change iptable settings when creating or renewing certs

parent 23f250c9
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,8 @@
protocol: tcp
jump: ACCEPT
state: present
when: groups.proxyserver is defined and inventory_hostname in groups.proxyserver
#when: groups.proxyserver is defined and inventory_hostname in groups.proxyserver
when: no
- 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
......@@ -37,7 +38,8 @@
protocol: tcp
jump: ACCEPT
state: absent
when: groups.proxyserver is defined and inventory_hostname in groups.proxyserver
#when: groups.proxyserver is defined and inventory_hostname in groups.proxyserver
when: no
- include_tasks: cert_deploy.yml
......
......@@ -19,7 +19,8 @@
protocol: tcp
jump: ACCEPT
state: present
when: groups.proxyserver is defined and inventory_hostname in groups.proxyserver
#when: groups.proxyserver is defined and inventory_hostname in groups.proxyserver
when: no
- name: Renew Existing Certs via webroot
shell: certbot renew --non-interactive --webroot-path /var/www/html --webroot
......@@ -43,7 +44,8 @@
protocol: tcp
jump: ACCEPT
state: absent
when: groups.proxyserver is defined and inventory_hostname in groups.proxyserver
#when: groups.proxyserver is defined and inventory_hostname in groups.proxyserver
when: no
- include_tasks: cert_deploy.yml
with_items: '{{ letsencrypt_certificates|default([]) }}'
......
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