Ubuntu1804-CIS icon indicating copy to clipboard operation
Ubuntu1804-CIS copied to clipboard

collections' is not a valid attribute for a RoleMetadata

Open h0mz opened this issue 3 years ago • 1 comments

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

h0mz avatar Mar 16 '21 07:03 h0mz

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

ansible --version
ansible 2.10.7

Try it.

ma3s7ro avatar Mar 19 '21 13:03 ma3s7ro