-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conditional execution managed by variables #62
Comments
I think for this to work we would need a jinja2 filter that is the equivalent of the python For example |
Such filters exist and I have used it in the example above. |
Yes, I'm aware of our combinatorial filters, the OCD side of me is just bothered by the verboseness in how it would need to be implemented. I think it'd be cleaner to see smth like
|
I think this is mostly implemented in the RHEL7-STIG role... |
It would be really great if I could specify what to run as a variable instead of as a tag. For example if I want to always run only
audit
tasks, I would specify:and if the task has the following tags:
the
when:
condition would look like this:The above could be extended by
rhel6stig_ignore
variable which would allow to ignore certain subset of therhel6stig_run
. For example if I would like to run allaudit
tasks but theV-38701
, therhel6stig_ignore
variable would look like this:and the
when:
condition in the task like this:Of course the
rhel6stig_run
as well as therhel6stig_ignore
can have more than one item:That would run all tasks marked as
audit
ANDhigh
and ignore all tasks marked asssh
,rlogin
andV-38668
tasks.The text was updated successfully, but these errors were encountered: