aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roles/etckeeper/tasks/main.yml
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-09-11 18:01:37 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-09-12 10:17:24 +0200
commit3b7ba8532f31d221c0708e2d6733bccdd3935f91 (patch)
tree9ba4be99b8a6589d30f94a9fa029cd8ec56d23ef /roles/etckeeper/tasks/main.yml
parentfix some ansible-lint warnings (diff)
downloadinfra-ansible-3b7ba8532f31d221c0708e2d6733bccdd3935f91.tar.gz
infra-ansible-3b7ba8532f31d221c0708e2d6733bccdd3935f91.zip
etckeeper: manage the ignore list
Diffstat (limited to '')
-rw-r--r--roles/etckeeper/tasks/main.yml12
1 files changed, 12 insertions, 0 deletions
diff --git a/roles/etckeeper/tasks/main.yml b/roles/etckeeper/tasks/main.yml
index 431a378..f609ce7 100644
--- a/roles/etckeeper/tasks/main.yml
+++ b/roles/etckeeper/tasks/main.yml
@@ -74,3 +74,15 @@
option: PUSH_REMOTE
value: '{{ etckeeper_remote_name }}'
notify: etckeeper_commit_conf
+
+- name: Commit etckeeper.conf if necessary
+ ansible.builtin.meta: flush_handlers
+
+- name: Configure ignored paths
+ ansible.builtin.include_tasks: ignore.yml
+ loop: '{{ etckeeper_ignored_paths + etckeeper_extra_ignored_paths }}'
+ loop_control:
+ loop_var: ignore_path
+
+- name: Commit .gitignore if necessary
+ ansible.builtin.meta: flush_handlers