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

Simplify conditionals

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