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>
pull/4344/head
Guillaume Abrioux 2019-08-14 11:10:12 +02:00
parent 5573f17e76
commit 4df92152c0
2 changed files with 2 additions and 2 deletions

View File

@ -106,7 +106,7 @@
- not rolling_update | bool - not rolling_update | bool
block: block:
- name: generate cluster fsid - 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 register: cluster_uuid
delegate_to: "{{ groups[mon_group_name][0] }}" delegate_to: "{{ groups[mon_group_name][0] }}"
run_once: true run_once: true

View File

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