ansible-lint
ansible-lint copied to clipboard
task_name_prefix doesnt work with folders
Summary
name[prefix] doesnt work with tasks in folders:
We have a Role with the following structure:
roles/haproxy/
├── defaults
├── files
├── handlers
├── tasks
│ ├── copy_certificates.yml
│ ├── haproxy1
│ │ ├── config.yml
│ │ └── main.yml
│ ├── haproxy2
│ │ ├── confd.yml
│ │ ├── config.yml
│ │ └── main.yml
│ ├── main.yml
│ └── set_backend_state.yml
└── templates
The tasks are named like: Folder | File | Taskname
Issue Type
name[prefix]: Task name should start with 'config | '.
roles/haproxy/tasks/haproxy2/config.yml:2 Task/Handler: HAproxy2 | config | Create directories
```
##### OS / ENVIRONMENT
<!--- Paste verbatim output between triple backticks -->
```console (paste below)
ansible-lint 24.2.0 using ansible-core:2.16.2 ansible-compat:4.1.11 ruamel-yaml:0.18.6 ruamel-yaml-clib:0.2.7
```
<!--- Provide all relevant information below, e.g. target OS versions, network
device firmware, etc. -->
- ansible installation method: OS package
- ansible-lint installation method: OS package
#### Desired Behavior
task_name_prefix with optional folder name?