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 <seb@redhat.com>
pull/2537/head v3.1.0beta7
Sébastien Han 2018-04-18 15:44:36 +02:00
parent 424815501a
commit 6c742376fd
1 changed files with 1 additions and 0 deletions

View File

@ -40,6 +40,7 @@
containerized: "{{ docker_exec_client_cmd | default('') }}" containerized: "{{ docker_exec_client_cmd | default('') }}"
cluster: "{{ cluster }}" cluster: "{{ cluster }}"
dest: "{{ ceph_conf_key_directory }}" 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 }}" with_items: "{{ keys }}"
run_once: true run_once: true
when: when: