From: Sébastien Han Date: Wed, 18 Apr 2018 13:44:36 +0000 (+0200) Subject: client: import the key in ceph is copy_admin_key is true X-Git-Tag: v3.1.0beta7 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=6c742376fd2b4ac4cab3430430136a5bd5a1145d;p=ceph-ansible.git client: import the key in ceph is copy_admin_key is true If the user has set copy_admin_key to true we assume he/she wants to import the key in Ceph and not only create the key on the filesystem. Signed-off-by: Sébastien Han --- diff --git a/roles/ceph-client/tasks/create_users_keys.yml b/roles/ceph-client/tasks/create_users_keys.yml index 36bbcc8ef..204ea7695 100644 --- a/roles/ceph-client/tasks/create_users_keys.yml +++ b/roles/ceph-client/tasks/create_users_keys.yml @@ -40,6 +40,7 @@ containerized: "{{ docker_exec_client_cmd | default('') }}" cluster: "{{ cluster }}" dest: "{{ ceph_conf_key_directory }}" + import_key: "{{ copy_admin_key }}" # if the admin key is copied we assume the user wants to import the key in Ceph not only create it with_items: "{{ keys }}" run_once: true when: