From a3769b7ec18eaf815e23f56cb35cdd9303c97609 Mon Sep 17 00:00:00 2001
From: Wolfgang Kulhanek <wkulhanek@users.noreply.github.com>
Date: Thu, 20 Feb 2020 00:05:09 +0100
Subject: [PATCH] Add ansible_python_interpreter to ensure cluster recovery works. (#1169)

---
 ansible/configs/ocp4-workshop/lifecycle.yml |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/ansible/configs/ocp4-workshop/lifecycle.yml b/ansible/configs/ocp4-workshop/lifecycle.yml
index 6ed56da..0162875 100644
--- a/ansible/configs/ocp4-workshop/lifecycle.yml
+++ b/ansible/configs/ocp4-workshop/lifecycle.yml
@@ -98,6 +98,9 @@
   become: false
   gather_facts: false
   tasks:
+  - name: Set Ansible Python interpreter to k8s virtualenv
+    set_fact:
+      ansible_python_interpreter: /opt/virtualenvs/k8s/bin/python
   - name: Recover cluster if it missed cert rotation
     delegate_to: "{{ groups['bastions'] | first }}"
     when: ACTION == 'start'

--
Gitblit v1.9.3