florianutz / Ubuntu1804-CIS

Ubuntu CIS Hardening Ansible Role
MIT License
212 stars 127 forks source link

collections' is not a valid attribute for a RoleMetadata #96

Open h0mz opened 3 years ago

h0mz commented 3 years ago

Have followed the steps to install via here: https://cloudsecuritylife.com/cis-ubuntu-script-to-automate-server-hardening/

Have tested on a couple of Ubuntu machines and the issue persists.

ERROR! 'collections' is not a valid attribute for a RoleMetadata

The error appears to have been in '/etc/ansible/roles/Ubuntu1804-CIS/meta/main.yml': line 2, column 1, but may be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:


galaxy_info: ^ here

ma3s7ro commented 3 years ago

On ansible 2.7 the same error. After updating to the last version all works fine.

ansible --version
ansible 2.10.7

Try it.