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

ansible-playbooks/general#85 Name import and include tasks

parent a00fd997
Branches
No related tags found
No related merge requests found
--- ---
# file: roles/letsencrypt/handler/main.yml # file: roles/letsencrypt/handler/main.yml
- import_tasks: ../../haproxy/handlers/main.yml - name: Import HaProxy handlers
import_tasks: ../../haproxy/handlers/main.yml
...@@ -23,21 +23,25 @@ ...@@ -23,21 +23,25 @@
tags: tags:
- renew - renew
- import_tasks: install.yml - name: Import install
import_tasks: install.yml
- include_tasks: cert.yml - name: Include certs
include_tasks: cert.yml
with_items: '{{ letsencrypt_certificates|default([]) }}' with_items: '{{ letsencrypt_certificates|default([]) }}'
loop_control: loop_control:
loop_var: domain loop_var: domain
tags: tags:
- Certs - Certs
- import_tasks: renew.yml - name: Import renew
import_tasks: renew.yml
when: letsencrypt_certs_available is defined and letsencrypt_certs_available.stat.exists and (proxy_active is not defined or proxy_active) when: letsencrypt_certs_available is defined and letsencrypt_certs_available.stat.exists and (proxy_active is not defined or proxy_active)
tags: tags:
- renew - renew
- import_tasks: ../../haproxy/tasks/proxypool.yml - name: Import HaProxy proxypool
import_tasks: ../../haproxy/tasks/proxypool.yml
tags: tags:
- renew - renew
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment