mon: replace `command` task by `copy`

We can achieve this task using `copy` module.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 5ff2ca270f)
pull/6085/head
Guillaume Abrioux 2020-11-24 12:56:04 +01:00
parent 1cf76da74a
commit 10551da173
1 changed files with 4 additions and 4 deletions

View File

@ -44,10 +44,10 @@
CEPH_CONTAINER_BINARY: "{{ container_binary }}"
- name: copy the initial key in /etc/ceph (for containers)
command: >
cp /var/lib/ceph/tmp/{{ cluster }}.mon..keyring
/etc/ceph/{{ cluster }}.mon.keyring
changed_when: false
copy:
src: /var/lib/ceph/tmp/{{ cluster }}.mon..keyring
dest: /etc/ceph/{{ cluster }}.mon.keyring
remote_src: true
when: containerized_deployment | bool
- name: create monitor directory