deploy_monitors: use python2 for v2 code

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
pull/980/head
Patrick Donnelly 2016-09-18 20:37:31 -04:00 committed by Patrick Donnelly
parent 2af46451e7
commit 35c64f91f4
No known key found for this signature in database
GPG Key ID: 3A2A7E25BEA8AADB
1 changed files with 1 additions and 1 deletions

View File

@ -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