From 83e61b25a52df3a4de4d43451e7bc6018b3f7822 Mon Sep 17 00:00:00 2001 From: William Hirigoyen Date: Wed, 29 Nov 2023 09:59:57 +0100 Subject: [PATCH] etc-git: add /var/chroot-bind/etc/bind repo --- CHANGELOG.md | 1 + etc-git/tasks/repositories.yml | 26 ++++++++++++++++++++++++-- 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 754d374d..1726b6c8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ The **patch** part changes is incremented if multiple releases happen the same m * lxc-php: Allow one to install php83 on Bookworm container * nagios-nrpe: add check_sentinel for monitoring Redis Sentinel * webapps/nextcloud: Added var nextcloud_user_uid to enforce uid for nextcloud user +* etc-git: add /var/chroot-bind/etc/bind repo ### Changed diff --git a/etc-git/tasks/repositories.yml b/etc-git/tasks/repositories.yml index 6c76d265..dd8031ae 100644 --- a/etc-git/tasks/repositories.yml +++ b/etc-git/tasks/repositories.yml @@ -24,7 +24,7 @@ - ansible.builtin.include_role: name: evolix/remount-usr when: - - _usr_share_scripts.stat.isdir + - _usr_share_scripts.stat.exists and _usr_share_scripts.stat.isdir - ansible.builtin.import_tasks: repository.yml vars: @@ -34,4 +34,26 @@ - _usr_share_scripts.stat.isdir - ansible_distribution_major_version is version('10', '>=') tags: - - etc-git \ No newline at end of file + - etc-git + + +- name: verify /var/chroot-bind/ presence + ansible.builtin.stat: + path: /var/chroot-bind + register: _var_chroot_bind + tags: + - etc-git + +- debug: + var: _var_chroot_bind.stat + +- ansible.builtin.import_tasks: repository.yml + vars: + repository_path: "/var/chroot-bind/etc/bind" + gitignore_items: [] + when: + - _var_chroot_bind.stat.exists and _var_chroot_bind.stat.isdir + - ansible_distribution_major_version is version('9', '>=') + tags: + - etc-git +