diff --git a/roles/ceph-mon/tasks/deploy_monitors.yml b/roles/ceph-mon/tasks/deploy_monitors.yml index 60080696b..401ee157f 100644 --- a/roles/ceph-mon/tasks/deploy_monitors.yml +++ b/roles/ceph-mon/tasks/deploy_monitors.yml @@ -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