mirror of https://github.com/ceph/ceph-ansible.git
Merge pull request #980 from batrick/deploy_monitors-py2
deploy_monitors: use python2 for v2 codepull/981/head
commit
112a2b2970
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
- name: generate monitor initial keyring
|
||||
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)" | tee {{ fetch_directory }}/monitor_keyring.conf
|
||||
local_action: shell python2 -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_directory }}/monitor_keyring.conf
|
||||
creates={{ fetch_directory }}/monitor_keyring.conf
|
||||
register: monitor_keyring
|
||||
become: false
|
||||
|
|
Loading…
Reference in New Issue