ansible-hardening/tasks
Jesse Pretorius f381cc02af Switch to using import_tasks for static inclusion
Using dynamic inclusion (include_tasks) should only be done
if the tasks to include are based on a conditional and there
is no expectation for the tag on the include task to be applied
to all included tasks. Using include_tasks for static inclusion
dramatically raises memory consumption. Using include_tasks also
breaks the ability to use a tag applied to the include.

In this patch we fix all inclusions to ensure that they are set
properly to dynamic or static inclusions where necessary.

We also remove the unnecessary leading whitespace in the main
task file.

Change-Id: Idff86d4a90d3309f0e9ae3b9f0559b37e25dc26f
Closes-Bug: #1800169
2019-01-08 11:54:21 +00:00
..
contrib Add scaffolding for contrib tasks 2017-11-08 07:28:47 -06:00
rhel7stig Switch to using import_tasks for static inclusion 2019-01-08 11:54:21 +00:00
main.yml Switch to using import_tasks for static inclusion 2019-01-08 11:54:21 +00:00