Skip to content

Commit

Permalink
mon: replace command task by copy
Browse files Browse the repository at this point in the history
We can achieve this task using `copy` module.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
  • Loading branch information
guits committed Nov 25, 2020
1 parent 40a87c4 commit 5ff2ca2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions roles/ceph-mon/tasks/deploy_monitors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5ff2ca2

Please sign in to comment.