aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roles/etckeeper/handlers
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/etckeeper/handlers
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 '')
-rw-r--r--roles/etckeeper/handlers/commit_conf.yml8
1 files changed, 4 insertions, 4 deletions
diff --git a/roles/etckeeper/handlers/commit_conf.yml b/roles/etckeeper/handlers/commit_conf.yml
index a9eb409..134e264 100644
--- a/roles/etckeeper/handlers/commit_conf.yml
+++ b/roles/etckeeper/handlers/commit_conf.yml
@@ -7,16 +7,16 @@
| grep -G -v '^etckeeper/etckeeper.conf'
args:
chdir: /etc
- register: etckeeper_modified_files
+ register: git_status
changed_when: false
- failed_when: etckeeper_modified_files.rc not in [0, 1]
+ failed_when: git_status.rc not in [0, 1]
- name: Fail if unexpected files were modified
ansible.builtin.fail:
msg: |
Unexpected files were modified:
- {{ etckeeper_modified_files.stdout }}
- when: etckeeper_modified_files.rc == 0
+ {{ git_status.stdout }}
+ when: git_status.rc == 0
- name: etckeeper commit
become: true