Skip to content

Commit 0400c57

Browse files
committed
fixing lint violations for grubcmdline role.
1 parent d7e56e4 commit 0400c57

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.ansible-lint

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ exclude_paths:
66
skip_list:
77
- yaml[line-length]
88
- galaxy[no-changelog]
9-
9+
- meta-runtime[unsupported-version]
1010
use_default_rules: true

roles/grubcmdline/defaults/main.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
22
# list of parameters to add to the kernel cmdline
3-
kernel_cmdline: []
3+
kernel_cmdline: [] # noqa var-naming[no-role-prefix]
44
# list of regexs to match against kernel paramerters. Any matches will be
55
# removed.
6-
kernel_cmdline_remove: []
7-
kernel_restart_handler: reboot
6+
kernel_cmdline_remove: [] # noqa var-naming[no-role-prefix]
7+
kernel_restart_handler: reboot # noqa var-naming[no-role-prefix]
88

99
# optionally skip backing up the config file. Can cause issues on some
1010
# filesystems due to filenames containing illegal characters
11-
backup_grub_config_file: true
11+
backup_grub_config_file: true # noqa var-naming[no-role-prefix]

roles/grubcmdline/vars/main.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
22
# Should match on all of the the cmd line parameters
3-
kernel_cmdline_regex: "{{ '(' ~ kernel_cmdline | map('regex_escape') | list | join('|') ~ ')' }}"
3+
kernel_cmdline_regex: "{{ '(' ~ kernel_cmdline | map('regex_escape') | list | join('|') ~ ')' }}" # noqa var-naming[no-role-prefix]
44

5-
kernel_cmdline_sorted: "{{ kernel_cmdline | sort }}"
5+
kernel_cmdline_sorted: "{{ kernel_cmdline | sort }}" # noqa var-naming[no-role-prefix]
66

77
# Should match on all of the the cmd line parameters that we want to remove
8-
kernel_cmdline_remove_regex: "{{ '(' ~ kernel_cmdline_remove | join('|') ~ ')' }}"
8+
kernel_cmdline_remove_regex: "{{ '(' ~ kernel_cmdline_remove | join('|') ~ ')' }}" # noqa var-naming[no-role-prefix]

0 commit comments

Comments
 (0)