Merge pull request #980 from batrick/deploy_monitors-py2

deploy_monitors: use python2 for v2 code
pull/981/head
Leseb 2016-09-19 09:42:56 +02:00 committed by GitHub
commit 112a2b2970
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