From 41b46ee15ed031cf3f27cc59a4c38a9259869ec0 Mon Sep 17 00:00:00 2001 From: Zhangfei Gao Date: Tue, 8 Aug 2017 12:44:47 +0800 Subject: [PATCH] common: fix ansible location When deploying on arm64, common reports error: stat /usr/bin/ansible: no such file or directory The reason is ansible is installed to /usr/local/bin/ansible rather that /usr/bin/ansible Fix the issue to call ansible directly, to consider both cases. Change-Id: Ie90bd9c4d7d3a4b7b0aef884351cb58ed13ebd11 Signed-off-by: Kevin Zhao Signed-off-by: Zhangfei Gao (cherry picked from commit 30f0dc10ce3e41451c6429ee4c79b3ba09a391a1) --- ansible/roles/common/handlers/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/roles/common/handlers/main.yml b/ansible/roles/common/handlers/main.yml index 8c4965b78b..bf3234a3d1 100644 --- a/ansible/roles/common/handlers/main.yml +++ b/ansible/roles/common/handlers/main.yml @@ -44,7 +44,7 @@ - Initializing toolbox container using normal user - name: Initializing toolbox container using normal user - command: docker exec -t kolla_toolbox /usr/bin/ansible --version + command: docker exec -t kolla_toolbox ansible --version changed_when: false - name: Restart cron container