From e4afd5bf62a96d2787d556275a64d20c875bbe48 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/install.yml | 3 ++- tasks/main.yml | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/tasks/install.yml b/tasks/install.yml index d3a567a..76b3ee8 100644 --- a/tasks/install.yml +++ b/tasks/install.yml @@ -2,7 +2,8 @@ # file: roles/discourse/tasks/install.yml - name: "Configure Apache" - import_tasks: apache.yml + include_tasks: apache.yml + tags: 'always' - name: "Clone Repository" git: diff --git a/tasks/main.yml b/tasks/main.yml index e634569..a92be6e 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -3,7 +3,7 @@ - name: "Docker Discourse" set_fact: role_discourse_started=true - tags: always + tags: 'always' - block: - name: "Install Certs" @@ -13,12 +13,14 @@ loop_control: loop_var: domain when: discourse_protocol|default("https") == "https" and discourse_letsencrypt|default(true) + tags: 'always' when: '"letsencrypt" not in excluded_roles and groups.proxyserver is not defined' - block: - name: "Install Discourse" - import_tasks: install.yml + include_tasks: install.yml + tags: 'always' when: '"discourse" not in excluded_roles' -- GitLab