-
Notifications
You must be signed in to change notification settings - Fork 59
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
ERROR! 'notify' is not a valid attribute for a Block #226
Comments
Signed-off-by: Mark Bolwell <[email protected]>
We use main for hardening our production servers. Is there a date on when the fix will get pushed to main? |
I was just wondering when this change will be merged into the "Main" branch? We like to base all our production hardening off of main. |
hi @jmalpede the pipeline had broken since the ansible galaxy updates only allows newer ansible versions. There was also another fix we wanted to get in prior to the next STIG release due to be released very soon. Thanks uk-bolly |
hi @jmalpede I believe this issue has been addressed and merged? many thanks uk-bolly |
Signed-off-by: Mark Bolwell <[email protected]>
Describe the Issue
After updating to main version:
9aa949c playbooks/roles/RHEL8-STIG (3.0.0-18-g9aa949c)
The playbook fails to run.
Expected Behavior
The Playbook should initialize and run without any errors.
Actual Behavior
The Playbook fails with the following error:
amazon-ebs: ERROR! 'notify' is not a valid attribute for a Block
amazon-ebs:
amazon-ebs: The error appears to be in '/home/jmalpede/git/arfam-provision/playbooks/roles/RHEL8-STIG/tasks/fix-cat2.yml': line 826, column 3, but may
amazon-ebs: be elsewhere in the file depending on the exact syntax problem.
Environment (please complete the following information):
$ ansible --version
ansible 2.10.17
config file = None
python version = 3.9.16 (main, Mar 15 2023, 10:32:11) [GCC 4.8.5 20150623 (Red Hat 4.8.5-44)]
main - hash
9aa949c playbooks/roles/RHEL8-STIG (3.0.0-18-g9aa949c)
Additional Notes
If you compare the latest Main to the "working" main, you can see the differences in the ansible syntax.
Possible Solution
The syntax in the fix-cat2.yml file needs to be updated to resolve some ansible formatting issues.
Edit lines 839, 864, 7411 to align notify under the task name, instead of the block.
Those 3 edits resolved the issue locally in our environment.
The text was updated successfully, but these errors were encountered: