From 2b4244d421f0b77f0a6fc9fc2bb99653d285e9ed Mon Sep 17 00:00:00 2001 From: jurgenhaas <juergen@paragon-es.de> Date: Sun, 25 Mar 2018 15:55:51 +0200 Subject: [PATCH] ansible-playbooks/general#72 Always use import_tasks or include_tasks instead of just include --- tasks/main.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index fa66831..5f599ff 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -11,11 +11,10 @@ - block: - - include: apache.yml - when: '"apache" not in excluded_roles and role_apache_completed is not defined' + - import_tasks: apache.yml - - name: 'Apache | Remember that this role had been run' + - name: 'Remember that this role had been run' set_fact: role_apache_completed=true tags: 'always' - when: '"apache" not in excluded_roles' + when: '"apache" not in excluded_roles and role_apache_completed is not defined' -- GitLab