From 721e96f145d4b1c6bd385616e14d40a2b8f546b7 Mon Sep 17 00:00:00 2001 From: Dmitriy Rabotyagov Date: Thu, 18 Jan 2024 09:55:37 +0100 Subject: [PATCH] Align extra conf files mode When placing ceph_extra_confs files to their destination, they're being assigned mode 0644 with root:root ownership. However, when we're overriding some sections in config files, we also accidentally change mode of these files to 0640 which makes issues while reading them by clients and makes role not idempotent. This issue was introduced by this commit [1] [1] https://review.opendev.org/c/openstack/openstack-ansible-ceph_client/+/888216 Change-Id: I5fe0fff9616e0829b83f61bd1b062cfd978543d6 --- tasks/ceph_config_extra.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/ceph_config_extra.yml b/tasks/ceph_config_extra.yml index 8834446..0edcaa9 100644 --- a/tasks/ceph_config_extra.yml +++ b/tasks/ceph_config_extra.yml @@ -43,7 +43,7 @@ section: "client.{{ item.client_name }}" option: keyring value: "{{ item.keyring_dest }}" - mode: "0640" + mode: "0644" with_items: "{{ ceph_extra_confs }}" when: - item.src is defined