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

Improve handling of proxy_active variable

parent a0a7d07b
No related branches found
No related tags found
No related merge requests found
......@@ -29,8 +29,8 @@
import_tasks: 'buildcerts.yml'
tags: 'Certs'
when: 'proxy_active is defined and proxy_active and "letsencrypt" not in excluded_roles'
when: 'proxy_active|default(true) and "letsencrypt" not in excluded_roles'
- import_tasks: 'proxypool.yml'
when: 'proxy_active is defined and "letsencrypt" not in excluded_roles'
when: '"letsencrypt" not in excluded_roles'
tags: 'Certs'
......@@ -8,17 +8,17 @@
path: '/etc/letsencrypt'
owner: '{{ ansible_env.SUDO_USER }}'
recurse: yes
when: proxy_active
when: proxy_active|default(true)
- name: "Pull Certs from active Proxy"
import_tasks: 'pullcerts.yml'
when: not proxy_active
when: not proxy_active|default(true)
- name: "Set directory permissions to root"
file:
path: '/etc/letsencrypt'
owner: 'root'
recurse: yes
when: proxy_active
when: proxy_active|default(true)
tags: 'Certs'
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