diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-09-11 18:01:37 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-09-12 10:17:24 +0200 |
commit | 3b7ba8532f31d221c0708e2d6733bccdd3935f91 (patch) | |
tree | 9ba4be99b8a6589d30f94a9fa029cd8ec56d23ef /roles/etckeeper/handlers/commit_conf.yml | |
parent | fix some ansible-lint warnings (diff) | |
download | infra-ansible-3b7ba8532f31d221c0708e2d6733bccdd3935f91.tar.gz infra-ansible-3b7ba8532f31d221c0708e2d6733bccdd3935f91.zip |
etckeeper: manage the ignore list
Diffstat (limited to '')
-rw-r--r-- | roles/etckeeper/handlers/commit.yml (renamed from roles/etckeeper/handlers/commit_conf.yml) | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/etckeeper/handlers/commit_conf.yml b/roles/etckeeper/handlers/commit.yml index 134e264..f48db8f 100644 --- a/roles/etckeeper/handlers/commit_conf.yml +++ b/roles/etckeeper/handlers/commit.yml @@ -4,7 +4,7 @@ set -o pipefail && \ git status --porcelain=v1 \ | cut -c 4- \ - | grep -G -v '^etckeeper/etckeeper.conf' + | grep -G -v '^{{ paths | map("regex_replace", "^/", "") | list | join("\|^") }}' args: chdir: /etc register: git_status @@ -21,4 +21,4 @@ - name: etckeeper commit become: true ansible.builtin.command: | - etckeeper commit 'configure etckeeper' + etckeeper commit '{{ commit_msg }}' |