-
Notifications
You must be signed in to change notification settings - Fork 81
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
ansible bug: notify on a block #236
Comments
Please update your Ansible to at least 2.12 the notify was introduced in later versions after 2.9 |
Not everyone has the luxury of updating past ansible 2.9. We are using tower which has us version-pinned. |
It is possible to create and run later version of ansible that can be utilised by tower in some versions with the use of virtual environments. It is something that i have personally used in the past. I know that Tower is no longer supported and they have moved to AAP, but ansible versions have also moved on alot, it is extremely difficulty (almost impossible) to maintain backwardly compatible code whilst trying to use some of the new and improved features without a huge effort on an opensource project I understand that this is frustrating with the ansible versions. I hope that it goes some way to help. Many thanks uk-bolly |
I am hoping that you have managed a work around for this issue and the suggestion helped to point you to a suitable solution. Many thanks uk-bolly |
Maybe just updating the documentation to say Ansible 2.11 is required? It took me a few minutes to figure out what was going on because the docs all say Ansible 2.9 is required, and I was running 2.10 (which is what is available in the Ubuntu 22.04 repositories which this projects targets) but ran into this as well. Of course adding the |
Describe the Issue
ERROR! 'notify' is not a valid attribute for a Block The error appears to be in '/var/buildagent/work/7c4acd731f0a163f/ansible/playbooks/roles/ubuntu22-cis/tasks/section_1/cis_1.1.1.x.yml': line 3, column 3, but may be elsewhere in the file depending on the exact syntax problem.
Environment (please complete the following information):
notify:
is here:UBUNTU22-CIS/tasks/section_1/cis_1.1.1.x.yml
Line 25 in 98e6419
The text was updated successfully, but these errors were encountered: