Open ckonstanski-olo opened 5 months ago
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.
hi @ckonstanski-olo
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. This article may help https://docs.ansible.com/ansible-tower/latest/html/upgrade-migration-guide/virtualenv.html
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
hi @ckonstanski-olo
I am hoping that you have managed a work around for this issue and the suggestion helped to point you to a suitable solution. Please let us know if you have managed to get around this, it would be great to add to readthedocs documentation to assist other in the community.
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 ppa:ansible/ansible
allows one to update to a newer Ansible, but that isn't always possible in some systems.
hi @kbknapp
Thank you for the feedback, could you let us know where you are seeing 2.9? the readme does have 2.12 listed as a requirement. So keen to make sure we can remove confusion.
many thanks uk-bolly
It was the Getting Started page linked in the readme which I clicked before reading the whole readme.
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: https://github.com/ansible-lockdown/UBUNTU22-CIS/blob/98e641921cdbcadf67523bc18d17485ef8fdc73f/tasks/section_1/cis_1.1.1.x.yml#L25