Currently, many of the install_nextcloud role's internal variables are prefixed with nextcloud_, but ansible-lint's var-naming rule specifies that a prefix of role_name_ should be applied to all role-specific variables. This causes ansible-lint to throw errors if the role is includeed or imported with any vars parameters.
$ roles/custom_nextcloud/tasks/main.yml
WARNING Listing 1 violation(s) that are fatal
var-naming[no-role-prefix]: Variables names from within roles should use role_name_ as a prefix. (vars: nextcloud_disable_websrv_default_site)
Description
Currently, many of the
install_nextcloud
role's internal variables are prefixed withnextcloud_
, butansible-lint
'svar-naming
rule specifies that a prefix ofrole_name_
should be applied to all role-specific variables. This causesansible-lint
to throw errors if the role isinclude
ed orimport
ed with anyvars
parameters.Steps to reproduce
Expected outcome
No
ansible-lint
errorsActual outcome