From 749a8bd2cccf1be9e3aee46340171d2917ba0a94 Mon Sep 17 00:00:00 2001 From: jurgenhaas <juergen@paragon-es.de> Date: Wed, 8 Nov 2017 12:02:46 +0100 Subject: [PATCH] ansible-playbooks/general#72 All includes are now include_tasks and they always have a tag associated --- tasks/main.yml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 93b2d73..477bd21 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -3,12 +3,13 @@ - name: "HaProxy Role" set_fact: role_haproxy_started=true - tags: always + tags: 'always' - block: - - import_tasks: install.yml - - import_tasks: configure.yml + - include_tasks: install.yml + tags: 'always' + - include_tasks: configure.yml tags: Config when: '"haproxy" not in excluded_roles' @@ -21,12 +22,15 @@ loop_control: loop_var: domain when: domain.letsencrypt|default(false) and domain.active|default(true) + tags: 'always' - name: "Renew Existing Cert" - import_tasks: '../../letsencrypt/tasks/renew.yml' + include_tasks: '../../letsencrypt/tasks/renew.yml' + tags: 'always' - name: "Build HaCerts" - import_tasks: 'buildcerts.yml' + include_tasks: 'buildcerts.yml' + tags: 'always' - name: "Set directory permissions to current user" file: @@ -42,9 +46,9 @@ - block: - name: "Pull Certs from active Proxy" - import_tasks: 'pullcerts.yml' + include_tasks: 'pullcerts.yml' + tags: Certs - tags: Certs when: 'not proxy_active and "letsencrypt" not in excluded_roles' - name: "Set directory permissions to root" -- GitLab