ansible-hardening/tasks
Logan V 00ad3500c8 Fix conditional cast to bool
While running the hardening role, I found that a small VM would
regularly crash ansible on the chrony configuration templating
task with "A worker was found in a dead state!". An ansible bug[0]
shows that this can be caused by jinja templating that is not casted
to the correct type.

After verifying the crash was reproducible 3-4 times in a row, this
crash stopped occuring once I started casting this variable to a bool.

I don't know if it is coincidence but it can't hurt to cast this
conditional regardless.

[0] https://github.com/ansible/ansible/issues/32554#issuecomment-382360908

Change-Id: Ie34de1808c807fd31099cc7d3d7b140ccfab64df
2019-03-15 23:01:45 -05:00
..
contrib Add scaffolding for contrib tasks 2017-11-08 07:28:47 -06:00
rhel7stig Fix conditional cast to bool 2019-03-15 23:01:45 -05:00
main.yml Switch to using import_tasks for static inclusion 2019-01-08 11:54:21 +00:00