From 6f03d6ad0754aec91f800e62ea7a35384571fc7a Mon Sep 17 00:00:00 2001 From: jurgenhaas <juergen@paragon-es.de> Date: Tue, 11 Jun 2019 19:33:25 +0200 Subject: [PATCH] ansible-playbooks/general#85 Name import and include tasks --- handlers/main.yml | 3 ++- tasks/main.yml | 12 ++++++++---- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/handlers/main.yml b/handlers/main.yml index 8b6f4f9..a7e5e2d 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -1,4 +1,5 @@ --- # file: roles/letsencrypt/handler/main.yml -- import_tasks: ../../haproxy/handlers/main.yml +- name: Import HaProxy handlers + import_tasks: ../../haproxy/handlers/main.yml diff --git a/tasks/main.yml b/tasks/main.yml index c4c3663..b446133 100644 --- a/tasks/main.yml +++ b/tasks/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 -- GitLab