mirror of https://github.com/ceph/ceph-ansible.git
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
parent
1cf76da74a
commit
10551da173
|
@ -44,10 +44,10 @@
|
||||||
CEPH_CONTAINER_BINARY: "{{ container_binary }}"
|
CEPH_CONTAINER_BINARY: "{{ container_binary }}"
|
||||||
|
|
||||||
- name: copy the initial key in /etc/ceph (for containers)
|
- name: copy the initial key in /etc/ceph (for containers)
|
||||||
command: >
|
copy:
|
||||||
cp /var/lib/ceph/tmp/{{ cluster }}.mon..keyring
|
src: /var/lib/ceph/tmp/{{ cluster }}.mon..keyring
|
||||||
/etc/ceph/{{ cluster }}.mon.keyring
|
dest: /etc/ceph/{{ cluster }}.mon.keyring
|
||||||
changed_when: false
|
remote_src: true
|
||||||
when: containerized_deployment | bool
|
when: containerized_deployment | bool
|
||||||
|
|
||||||
- name: create monitor directory
|
- name: create monitor directory
|
||||||
|
|
Loading…
Reference in New Issue