diff --git a/roles/ceph-mon/tasks/ceph_keys.yml b/roles/ceph-mon/tasks/ceph_keys.yml index c6df4f4ae..36f5ab499 100644 --- a/roles/ceph-mon/tasks/ceph_keys.yml +++ b/roles/ceph-mon/tasks/ceph_keys.yml @@ -27,9 +27,9 @@ - name: set keys permissions file: path: "{{ item }}" - mode: 0600 - owner: root - group: root + mode: "{{ key_mode }}" + owner: "{{ key_owner }}" + group: "{{ key_group }}" with_items: - "{{ ceph_keys.stdout_lines }}" when: cephx