From: Matthew Vernon Date: Tue, 11 Apr 2017 12:27:19 +0000 (+0100) Subject: Only assemble {{ cluster }}.conf and osd.conf X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b7e132457552c09f6ee513b9d81d13a1abe95ec6;p=ceph-ansible.git 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 --- diff --git a/roles/ceph-osd/tasks/osd_fragment.yml b/roles/ceph-osd/tasks/osd_fragment.yml index 9aa97b8a3..652a91cfa 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: "{{ dir_owner }}" group: "{{ dir_group }}" mode: "{{ activate_file_mode }}"