From 7e5b723a3a2375291db7019daf6fc54d14e42e69 Mon Sep 17 00:00:00 2001 From: Alexander Dahl <alex@netz39.de> Date: Fri, 28 Feb 2025 08:36:12 +0100 Subject: [PATCH] :rotating_light: roles: nfs_host: Rename Roles names are expected to be lower case with underscores only, see ansible-lint warning: % ansible-lint -t role-name WARNING Listing 1 violation(s) that are fatal role-name: Role name nfs-host does not match ``^[a-z][a-z0-9_]*$`` pattern. roles/nfs-host:1 Read documentation for instructions on how to ignore specific rule violations. Rule Violation Summary count tag profile rule associated tags 1 role-name basic deprecations, metadata Failed after min profile: 1 failure(s), 0 warning(s) on 135 files. Fixes: 213887052097 ("nfs server wird nicht im k3s laufen, labeling entfernt") --- host-plumbum.yml | 2 +- roles/{nfs-host => nfs_host}/defaults/main.yml | 2 +- roles/{nfs-host => nfs_host}/handlers/main.yml | 0 roles/{nfs-host => nfs_host}/tasks/main.yml | 0 roles/{nfs-host => nfs_host}/templates/exports.j2 | 0 5 files changed, 2 insertions(+), 2 deletions(-) rename roles/{nfs-host => nfs_host}/defaults/main.yml (87%) rename roles/{nfs-host => nfs_host}/handlers/main.yml (100%) rename roles/{nfs-host => nfs_host}/tasks/main.yml (100%) rename roles/{nfs-host => nfs_host}/templates/exports.j2 (100%) diff --git a/host-plumbum.yml b/host-plumbum.yml index d9aa737..e0c3433 100644 --- a/host-plumbum.yml +++ b/host-plumbum.yml @@ -3,7 +3,7 @@ become: true roles: - - role: nfs-host + - role: nfs_host vars: nfs_host_exports: - directory: "/srv/nfs/backup" diff --git a/roles/nfs-host/defaults/main.yml b/roles/nfs_host/defaults/main.yml similarity index 87% rename from roles/nfs-host/defaults/main.yml rename to roles/nfs_host/defaults/main.yml index 210a3be..ee0d286 100644 --- a/roles/nfs-host/defaults/main.yml +++ b/roles/nfs_host/defaults/main.yml @@ -1,4 +1,4 @@ -# Defaults for nfs-host +# Defaults for nfs_host --- nfs_host_exports: [] # - directory: "/srv/nfs" diff --git a/roles/nfs-host/handlers/main.yml b/roles/nfs_host/handlers/main.yml similarity index 100% rename from roles/nfs-host/handlers/main.yml rename to roles/nfs_host/handlers/main.yml diff --git a/roles/nfs-host/tasks/main.yml b/roles/nfs_host/tasks/main.yml similarity index 100% rename from roles/nfs-host/tasks/main.yml rename to roles/nfs_host/tasks/main.yml diff --git a/roles/nfs-host/templates/exports.j2 b/roles/nfs_host/templates/exports.j2 similarity index 100% rename from roles/nfs-host/templates/exports.j2 rename to roles/nfs_host/templates/exports.j2