ansible-lockdown / RHEL7-STIG

Ansible role for Red Hat 7 STIG Baseline

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

auto-detect chroot

jamescassell opened this issue · comments

For ansible 2.5 and later, we can use the ansible_is_chroot fact to pre-populate rhel7stig_system_is_chroot. We should set defaults:

rhel7stig_system_is_chroot: "{{ ansible_is_chroot | default(False) }}"

Then gather_facts: subset="!all,!min,chroot" when ansible >= 2.5 and ansible_is_chroot not defined.