From: Guillaume Abrioux Date: Tue, 24 Nov 2020 11:56:04 +0000 (+0100) Subject: mon: replace `command` task by `copy` X-Git-Tag: v6.0.0alpha3~33 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5ff2ca270f6e3c28c66950d8bb07aeddc373c0ae;p=ceph-ansible.git mon: replace `command` task by `copy` We can achieve this task using `copy` module. Signed-off-by: Guillaume Abrioux --- diff --git a/roles/ceph-mon/tasks/deploy_monitors.yml b/roles/ceph-mon/tasks/deploy_monitors.yml index c7611d363..607435a12 100644 --- a/roles/ceph-mon/tasks/deploy_monitors.yml +++ b/roles/ceph-mon/tasks/deploy_monitors.yml @@ -50,10 +50,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