From 755f3cb2ef2fda41a85fa55af0e20974bc95876a Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Fri, 23 Oct 2026 14:11:00 +0300 Subject: noqa directives on separate lines --- roles/etckeeper/tasks/ignore.yml | 3 ++- roles/etckeeper/tasks/ignore_line.yml | 3 ++- roles/etckeeper/tasks/main.yml | 6 ++++-- roles/yay/tasks/main.yml | 4 +++- 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/roles/etckeeper/tasks/ignore.yml b/roles/etckeeper/tasks/ignore.yml index 1e74257..73c5aa1 100644 --- a/roles/etckeeper/tasks/ignore.yml +++ b/roles/etckeeper/tasks/ignore.yml @@ -1,4 +1,5 @@ -- name: Check git status # noqa: command-instead-of-module +- name: Check git status + # noqa: command-instead-of-module become: true ansible.builtin.command: cmd: git status --porcelain diff --git a/roles/etckeeper/tasks/ignore_line.yml b/roles/etckeeper/tasks/ignore_line.yml index 1182cef..ceb6a30 100644 --- a/roles/etckeeper/tasks/ignore_line.yml +++ b/roles/etckeeper/tasks/ignore_line.yml @@ -9,7 +9,8 @@ mode: '644' notify: etckeeper_commit_gitignore -- name: Remove path from cache # noqa: command-instead-of-module +- name: Remove path from cache + # noqa: command-instead-of-module become: true ansible.builtin.command: cmd: git rm -r --ignore-unmatch --cached -- {{ ignore_path | regex_replace("^/", "") | quote }} diff --git a/roles/etckeeper/tasks/main.yml b/roles/etckeeper/tasks/main.yml index 2bd699f..b3d46f4 100644 --- a/roles/etckeeper/tasks/main.yml +++ b/roles/etckeeper/tasks/main.yml @@ -52,7 +52,8 @@ when: etckeeper_remote_url is defined become: true block: - - name: Read current remote URL # noqa: command-instead-of-module + - name: Read current remote URL + # noqa: command-instead-of-module ansible.builtin.command: cmd: git config --local remote.{{ etckeeper_remote_name | quote }}.url chdir: /etc @@ -60,7 +61,8 @@ failed_when: false register: etckeeper_config_result - - name: Fix remote URL if necessary # noqa: command-instead-of-module + - name: Fix remote URL if necessary + # noqa: command-instead-of-module ansible.builtin.shell: cmd: | git remote remove {{ etckeeper_remote_name | quote }} && \ diff --git a/roles/yay/tasks/main.yml b/roles/yay/tasks/main.yml index fc8b5bb..5f052a9 100644 --- a/roles/yay/tasks/main.yml +++ b/roles/yay/tasks/main.yml @@ -22,7 +22,9 @@ - name: Checkout & build block: - - name: Checkout # noqa: latest[git] + - name: Checkout + # noqa: latest[git] + # This is supposed to always work, per the project's README. ansible.builtin.git: repo: 'https://aur.archlinux.org/yay.git' dest: '{{ yay_dir.path }}' -- cgit v1.3