Skip to content

Sudden appearance of var-naming[no-role-prefix] failures #4684

@neilharris1

Description

@neilharris1
Summary

The behaviour of ansible-lint seems to have suddenly changed in the last few hours.

I'm getting 100s of failures similar to the below in my branch, which was fine a couple of hours ago, and which I have made no further changes since ansible-lint passed on previous runs.

var-naming[no-role-prefix]: Variables names from within roles should use sslproxy_ as a prefix. (set_fact: nginx_configs)
roles/sslproxy/tasks/main.yml:66:5 Task/Handler: Define nginx server configurations

var-naming[no-role-prefix]: Variables names from within roles should use users_ as a prefix. (register: env_file)
roles/users/tasks/main.yml:2:13 Task/Handler: Read /etc/environment

var-naming[no-role-prefix]: Variables names from within roles should use users_ as a prefix. (set_fact: file_envs)
roles/users/tasks/main.yml:8:5 Task/Handler: Parse /etc/environment

var-naming[no-role-prefix]: Variables names from within roles should use users_ as a prefix. (set_fact: file_evs)
roles/users/tasks/main.yml:16:5 Task/Handler: Set facts from /etc/environment

var-naming[no-role-prefix]: Variables names from within roles should use varnish_ as a prefix. (register: add_varnish_key)
roles/varnish/tasks/main.yml:8:13 Task/Handler: Add Varnish APT key

var-naming[no-role-prefix]: Variables names from within roles should use varnish_ as a prefix. (register: add_varnish_repo)
roles/varnish/tasks/main.yml:15:13 Task/Handler: Add Varnish APT repository

These are files that have not been amended in my PR, and have passed ansible lint tests for several months previously.

Issue Type
  • Bug Report
OS / ENVIRONMENT

ubuntu 22.04

Tried with the following releases/tag:

main (which uses 25.6.2.dev22)
v25.6.1
v25.6.0

I'm getting the same behaviour with all of these.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugnewTriage required

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions