diff --git a/.ansible-lint b/.ansible-lint index 2394b2a..bc4c933 100644 --- a/.ansible-lint +++ b/.ansible-lint @@ -1,6 +1,6 @@ -# .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 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5f5065c..f64d238 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,7 @@ --- repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v3.4.0 + rev: v4.4.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer @@ -17,15 +17,17 @@ repos: - id: ansible-lint name: Ansible-lint description: This hook runs ansible-lint. - entry: ansible-lint --force-color + entry: ansible-lint -v --force-color language: python # do not pass files to ansible-lint, see: # https://github.com/ansible/ansible-lint/issues/611 pass_filenames: false always_run: true + additional_dependencies: + - ansible-core>=2.13.3 - repo: https://github.com/adrienverge/yamllint.git - rev: v1.26.0 + rev: v1.29.0 hooks: - id: yamllint files: \.(yaml|yml)$ diff --git a/tasks/main.yml b/tasks/main.yml index c595799..c73f3f1 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,6 +1,6 @@ --- # No tasks -- name: "no tasks" - debug: +- name: "No tasks" + ansible.builtin.debug: msg: "Please import the task as needed in your playbook." ...