Skip to content
Snippets Groups Projects
Commit 2b4244d4 authored by jurgenhaas's avatar jurgenhaas
Browse files

ansible-playbooks/general#72 Always use import_tasks or include_tasks instead of just include

parent 7746682f
No related branches found
No related tags found
No related merge requests found
......@@ -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'
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