From 10551da173b763a341eb876c59cd2aaba53e2eed Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Tue, 24 Nov 2020 12:56:04 +0100 Subject: [PATCH] mon: replace `command` task by `copy` We can achieve this task using `copy` module. Signed-off-by: Guillaume Abrioux (cherry picked from commit 5ff2ca270f6e3c28c66950d8bb07aeddc373c0ae) --- roles/ceph-mon/tasks/deploy_monitors.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 -- 2.39.5