aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roles/rate_mirrors/tasks/main.yml
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-09-11 14:51:02 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-09-11 14:51:02 +0200
commit4410fbcd9a524840b905c783a981afc8d36ce645 (patch)
treef8a8ca8e9506722c39051307436d2cefc2c7b753 /roles/rate_mirrors/tasks/main.yml
parentpacman: drop dependency on etckeeper role + refactoring (diff)
downloadinfra-ansible-4410fbcd9a524840b905c783a981afc8d36ce645.tar.gz
infra-ansible-4410fbcd9a524840b905c783a981afc8d36ce645.zip
fix some ansible-lint warnings
Diffstat (limited to 'roles/rate_mirrors/tasks/main.yml')
-rw-r--r--roles/rate_mirrors/tasks/main.yml7
1 files changed, 4 insertions, 3 deletions
diff --git a/roles/rate_mirrors/tasks/main.yml b/roles/rate_mirrors/tasks/main.yml
index d000b13..9d40fa2 100644
--- a/roles/rate_mirrors/tasks/main.yml
+++ b/roles/rate_mirrors/tasks/main.yml
@@ -10,13 +10,14 @@
become: true
block:
- name: Check for changes in /etc
- ansible.builtin.command: git status --porcelain=v1
- args:
+ ansible.builtin.command: # noqa: command-instead-of-module
+ cmd: git status --porcelain=v1
chdir: /etc
register: git_status
changed_when: false
- - ansible.builtin.fail:
+ - name: Fail
+ ansible.builtin.fail:
msg: |
There are uncommitted changes in /etc:
{{ git_status.stdout }}