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
No related branches found
No related tags found
No related merge requests found
---
# 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 @@
tags:
- 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([]) }}'
loop_control:
loop_var: domain
tags:
- 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)
tags:
- renew
- import_tasks: ../../haproxy/tasks/proxypool.yml
- name: Import HaProxy proxypool
import_tasks: ../../haproxy/tasks/proxypool.yml
tags:
- renew
......
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