iscsi: fix ownership on iscsi-gateway.cfg

This file is currently deployed with '0644' ownership making this file
readable by any user on the system.
Since it contains sensitive information it should be readable by the
owner only.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1890119

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit a822f77300)
pull/5986/head
Guillaume Abrioux 2020-10-21 14:26:57 +02:00 committed by Dimitri Savineau
parent d165dc676d
commit 12e06d07c8
1 changed files with 1 additions and 0 deletions

View File

@ -44,6 +44,7 @@
dest: /etc/ceph/iscsi-gateway.cfg
config_type: ini
config_overrides: '{{ iscsi_conf_overrides }}'
mode: "0600"
notify: restart ceph rbd-target-api-gw
- name: set_fact container_exec_cmd