lint fixes

This commit is contained in:
Raimund Konz
2024-09-15 15:32:51 +00:00
parent af593e4ea4
commit 8bd4f52b7c
4 changed files with 16 additions and 7 deletions
+4 -3
View File
@@ -1,6 +1,7 @@
---
# .ansible-lint
warn_list:
- '204' # Lines should be less than 160 characters
- '701' # meta/main.yml should contain relevant info
- "204" # Lines should be less than 160 characters
- "701" # meta/main.yml should contain relevant info
skip_list:
- '106' # Role name must match ^[a-z][a-z0-9_]+$ pattern
- "106" # Role name must match ^[a-z][a-z0-9_]+$ pattern
+3 -2
View File
@@ -1,4 +1,5 @@
---
# No tasks
- debug: msg="No tasks are provided here. Please import the task as needed in your playbook."
...
- name: Nothing here
ansible.builtin.debug:
msg: No tasks are provided here. Please import the task as needed in your playbook.
+5
View File
@@ -0,0 +1,5 @@
---
# No tasks
- name: Here we do something nothing
ansible.builtin.debug:
msg: No tasks are provided here. Please import the task as needed in your playbook.
+4 -2
View File
@@ -1,5 +1,7 @@
---
- hosts: localhost
- name: Testing example
hosts: localhost
remote_user: root
tasks:
- import_tasks: example.yml
- name: Importing
ansible.builtin.import_tasks: example.yml