mirror of https://github.com/ceph/ceph-ansible.git
commit
9825a448c8
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
- name: generate monitor initial keyring
|
- name: generate monitor initial keyring
|
||||||
local_action: >
|
local_action: >
|
||||||
shell 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)) ; print base64.b64encode(header + key)' > fetch/monitor_keyring.conf"
|
shell 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)) ; print base64.b64encode(header + key)" | tee fetch/monitor_keyring.conf
|
||||||
creates=fetch/monitor_keyring.conf
|
creates=fetch/monitor_keyring.conf
|
||||||
register: monitor_keyring
|
register: monitor_keyring
|
||||||
sudo: false
|
sudo: false
|
||||||
|
|
Loading…
Reference in New Issue