common: replace shell module

there is no need to use `shell` in these tasks. Let's use `command`.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 4df92152c0)
pull/4348/head
Guillaume Abrioux 2019-08-14 11:10:12 +02:00 committed by mergify[bot]
parent 236020fb2b
commit 6d90dbc3c0
2 changed files with 2 additions and 2 deletions

View File

@ -106,7 +106,7 @@
- not rolling_update | bool
block:
- name: generate cluster fsid
shell: "{{ discovered_interpreter_python }} -c 'import uuid; print(str(uuid.uuid4()))'"
command: "{{ discovered_interpreter_python }} -c 'import uuid; print(str(uuid.uuid4()))'"
register: cluster_uuid
delegate_to: "{{ groups[mon_group_name][0] }}"
run_once: true

View File

@ -10,7 +10,7 @@
when: ceph_current_status.fsid is defined
- name: generate monitor initial keyring
shell: >
command: >
{{ discovered_interpreter_python }} -c "import os ; import struct ;
import time; import base64 ; key = os.urandom(16) ;
header = struct.pack('<hiih',1,int(time.time()),0,len(key)) ;