From bc846b7da6d9af16d9611fef7f00df6557f19def Mon Sep 17 00:00:00 2001 From: Matthew Vernon Date: Tue, 11 Apr 2017 13:27:19 +0100 Subject: [PATCH] Only assemble {{ cluster }}.conf and osd.conf Ansible's assemble module by default will put all files in the src directory together into dest. We only want to put {{ cluster }}.conf and osd.conf together, not anything that might have found its way into /etc/ceph/ceph.d (e.g. files left by the sysadmin taking backups before an ansible run). So specify a regexp that matches only those two files. Signed-off-by: Matthew Vernon --- roles/ceph-osd/tasks/osd_fragment.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/ceph-osd/tasks/osd_fragment.yml b/roles/ceph-osd/tasks/osd_fragment.yml index 444a08ce3..5cd01fae4 100644 --- a/roles/ceph-osd/tasks/osd_fragment.yml +++ b/roles/ceph-osd/tasks/osd_fragment.yml @@ -68,6 +68,7 @@ assemble: src: /etc/ceph/ceph.d/ dest: /etc/ceph/{{ cluster }}.conf + regexp: "^(({{cluster}})|(osd)).conf$" owner: "ceph" group: "ceph" mode: "0644" -- 2.39.5