There's no need to set the client_admin_ceph_authtool_cap variable
via a set_fact task.
Instead we can set this in the role defaults.
Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
# - nodelete
# - nosizechange
+#client_admin_ceph_authtool_cap:
+# mon: allow *
+# osd: allow *
+# mds: allow *
+# mgr: allow *
###############
# CRUSH RULES #
- nodelete
- nosizechange
+client_admin_ceph_authtool_cap:
+ mon: allow *
+ osd: allow *
+ mds: allow *
+ mgr: allow *
###############
# CRUSH RULES #
mode: "u=rwX,g=rX,o=rX"
recurse: true
-- name: set_fact client_admin_ceph_authtool_cap
- set_fact:
- client_admin_ceph_authtool_cap:
- mon: allow *
- osd: allow *
- mds: allow *
- mgr: allow *
- when:
- - cephx
- - admin_secret != 'admin_secret'
-
- name: create custom admin keyring
ceph_key:
name: client.admin