From 1f3c9ce4f38070d5538b269f524666d9a780fc13 Mon Sep 17 00:00:00 2001 From: Ha Phan Date: Mon, 4 Jun 2018 17:36:48 +0800 Subject: [PATCH] Use python instead of python2 The initial keyring is generated from ansible server locally and the snippet works well for both v2 and v3 of python. I don't see any reason why we should explicitly invoke`python2` instead of just `python`. In some setups, `python2` is not symlinked to `python`; while `python` and `python3` refer to v2 and v3 respectively. Signed-off-by: Ha Phan --- roles/ceph-mon/tasks/deploy_monitors.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/ceph-mon/tasks/deploy_monitors.yml b/roles/ceph-mon/tasks/deploy_monitors.yml index 1ea0a0503..391e687c5 100644 --- a/roles/ceph-mon/tasks/deploy_monitors.yml +++ b/roles/ceph-mon/tasks/deploy_monitors.yml @@ -2,7 +2,7 @@ - name: generate monitor initial keyring local_action: module: shell - python2 -c "import os ; import struct ; import time; import base64 ; key = os.urandom(16) ; header = struct.pack('