OULibraries / ansible-role-centos7

Base CentOS7 role for OULib.
MIT License
0 stars 1 forks source link

Tag SELinux tasks and cleanup platform/hypervisor/distro detection logic #32

Closed jsnshrmn closed 4 years ago

jsnshrmn commented 5 years ago

Tag SELinux tasks and cleanup platform/hypervisor/distro detection logic

Adds a tag to SELinux tasks so that they may be run selectively. Changes up the way platform/hypervisor/distro detection logic to be more DRY and to work more consistently with newer CentOS7 images on new t3 aws instances.

Motivation and Context

Closes #30 Closes #31

How Has This Been Tested?

I've used this fork to deploy the latest CentOS7 images to AWS t3 instances and to a local docker-based CICD environment. Have not tested on metal or VMware, and if you peek at the changes, you'll see I slightly changed up the detection logic to make it easier to read and DRY.

lo5an commented 4 years ago

Not sure how I missed seeing this in 2018, but it all looks good and I'm merging it in now.