From 4410fbcd9a524840b905c783a981afc8d36ce645 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 11 Sep 2023 14:51:02 +0200 Subject: fix some ansible-lint warnings --- roles/etckeeper/handlers/commit_conf.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'roles/etckeeper') 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 -- cgit v1.2.3