From 0ce7de66f05439fed8ba258fdb603b4e58a4c7e3 Mon Sep 17 00:00:00 2001 From: Damian Dabrowski Date: Fri, 20 Feb 2026 23:05:57 +0100 Subject: [PATCH] Allow to define owner/group/mode when copying extra ceph conf files In some cases it may be useful to define custom owner/group/mode for copied files. Change-Id: I12139474c89c4d5f2978fb238d942ff8566fdf1d Signed-off-by: Damian Dabrowski --- tasks/ceph_config_extra.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tasks/ceph_config_extra.yml b/tasks/ceph_config_extra.yml index 4f4a50f..ad27803 100644 --- a/tasks/ceph_config_extra.yml +++ b/tasks/ceph_config_extra.yml @@ -25,9 +25,9 @@ ansible.builtin.copy: src: "{{ item.src }}" dest: "{{ item.dest }}" - owner: root - group: root - mode: "0644" + owner: "{{ item.owner | default('root') }}" + group: "{{ item.group | default('root') }}" + mode: "{{ item.mode | default('0644') }}" notify: - Restart os services with_items: "{{ ceph_extra_confs }}"