From 2fdc9e4a183dae6401ca9397d68f226362f529c9 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sun, 8 Jan 2023 15:25:23 +0000 Subject: [PATCH] Update linting dependencies --- .ansible-lint | 10 ++++++---- dev-requirements.txt | 4 ++-- dotfiles.yml | 2 +- tasks/boot.yml | 2 +- tasks/i3.yml | 2 +- tasks/packages.yml | 2 +- 6 files changed, 12 insertions(+), 10 deletions(-) diff --git a/.ansible-lint b/.ansible-lint index 4928b51..af614d3 100644 --- a/.ansible-lint +++ b/.ansible-lint @@ -1,8 +1,10 @@ skip_list: - - 305 - - 401 - - 301 - - 503 + - command-instead-of-shell + - no-handler + - git-latest + - fqcn + - name[missing] + - name[play] exclude_paths: - galaxy_roles/ diff --git a/dev-requirements.txt b/dev-requirements.txt index f031a5a..14869b8 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -1,2 +1,2 @@ -yamllint==1.25.0 -ansible-lint==4.3.7 +yamllint==1.28.0 +ansible-lint==6.10.2 diff --git a/dotfiles.yml b/dotfiles.yml index a22ae85..0a24cb3 100644 --- a/dotfiles.yml +++ b/dotfiles.yml @@ -9,7 +9,7 @@ - name: Load custom variables include_vars: file: host_vars/{{ ansible_hostname }}.yml - ignore_errors: true + failed_when: false - import_tasks: tasks/user.yml - import_tasks: tasks/packages.yml diff --git a/tasks/boot.yml b/tasks/boot.yml index 0885088..20a3003 100644 --- a/tasks/boot.yml +++ b/tasks/boot.yml @@ -21,7 +21,7 @@ modprobe: name: pcspkr state: absent - ignore_errors: true + failed_when: false - name: Set lightdm greeter ini_file: diff --git a/tasks/i3.yml b/tasks/i3.yml index 8727cd9..886f84a 100644 --- a/tasks/i3.yml +++ b/tasks/i3.yml @@ -44,7 +44,7 @@ owner: "{{ user }}" mode: 0755 -- name: i3 config files +- name: Install i3 config files loop: "{{ i3_config_files }}" loop_control: label: "{{ item.src }}" diff --git a/tasks/packages.yml b/tasks/packages.yml index dadd544..cb48b8e 100644 --- a/tasks/packages.yml +++ b/tasks/packages.yml @@ -50,7 +50,7 @@ - name: Update package repositories pacman: - update_cache: yes + update_cache: true become: true when: added_repo_keys.changed or pacman_conf.changed