Use dynamic includes for speedup

Now that Ansible 2.x allows for dynamic includes, we can drive a hard
split between the RHEL 6 and RHEL 7 STIG work. This speeds up gate jobs
and avoids situations where a variable is defined in one STIG playbook
versus another.

Implements: blueprint security-rhel7-stig
Change-Id: If3cf9f2154055a316c0764556d57a0dde9e061f4
This commit is contained in:
Major Hayden 2016-11-18 16:38:03 -06:00
parent 922ab8597c
commit 53ffc83901

View File

@ -43,12 +43,4 @@
tags: tags:
- always - always
- include: rhel6stig/main.yml - include: "{{ stig_version }}stig/main.yml"
when:
- stig_version == 'rhel6'
# NOTE(mhayden): RHEL 7 STIG content is still under development. Do not run
# these tasks against a production environment at this time.
- include: rhel7stig/main.yml
when:
- stig_version == 'rhel7'