diff options
| author | Egor Tensin <egor@tensin.name> | 2026-10-23 14:11:00 +0300 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-10-23 14:11:00 +0300 |
| commit | 755f3cb2ef2fda41a85fa55af0e20974bc95876a (patch) | |
| tree | 64f2cec8ad6947e62009ae92fc7f190b1977a008 | |
| parent | fix some more ansible-lint warnings (diff) | |
| download | infra-ansible-755f3cb2ef2fda41a85fa55af0e20974bc95876a.tar.gz infra-ansible-755f3cb2ef2fda41a85fa55af0e20974bc95876a.zip | |
noqa directives on separate lines
| -rw-r--r-- | roles/etckeeper/tasks/ignore.yml | 3 | ||||
| -rw-r--r-- | roles/etckeeper/tasks/ignore_line.yml | 3 | ||||
| -rw-r--r-- | roles/etckeeper/tasks/main.yml | 6 | ||||
| -rw-r--r-- | 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 }}' |
