Merge "Add some protection from shadowing mount"

This commit is contained in:
Zuul 2021-01-18 19:33:51 +00:00 committed by Gerrit Code Review
commit 7d8e075779

View File

@ -50,6 +50,7 @@
lineinfile:
dest: "/var/lib/lxc/{{ inventory_hostname }}/config"
line: "lxc.mount.entry = {{ item['mount_path'] }} {{ item['bind_dir_path'].lstrip('/') }} none bind,create=dir 0 0"
insertbefore: "^lxc.mount.entry = .*\\s{{ item['bind_dir_path'].lstrip('/') | regex_replace('/', '\/') }}.*"
backup: "true"
with_items:
- "{{ lxc_default_bind_mounts | default([]) }}"