Description
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.
Steps to reproduce
# roles/custom_nextcloud/tasks/main.yml
- name: Install Nextcloud
ansible.builtin.include_role:
name: nextcloud.admin.install_nextcloud
vars:
nextcloud_disable_websrv_default_site: true
Expected outcome
No ansible-lint errors
Actual outcome
$ 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_nextcloudrole's internal variables are prefixed withnextcloud_, butansible-lint'svar-namingrule specifies that a prefix ofrole_name_should be applied to all role-specific variables. This causesansible-lintto throw errors if the role isincludeed orimported with anyvarsparameters.Steps to reproduce
Expected outcome
No
ansible-linterrorsActual outcome