Wolfgang Kulhanek
2020-03-13 5a5e5026c18b0e4d199a9f8450dcb37bffc70617
Fix stat check (#1325)

2 files modified
4 ■■■■ changed files
ansible/configs/ocp-workloads/ocp-workload.yml 2 ●●● patch | view | raw | blame | history
ansible/configs/ocp-workloads/post_software.yml 2 ●●● patch | view | raw | blame | history
ansible/configs/ocp-workloads/ocp-workload.yml
@@ -13,7 +13,7 @@
      path: "/opt/virtualenvs/k8s/bin/python"
    register: r_virtualenv
  - name: Set Ansible Python interpreter to virtualenv
    when: r_virtualenv.exists
    when: r_virtualenv.stat.exists
    set_fact:
      ansible_python_interpreter: "/opt/virtualenvs/k8s/bin/python"
ansible/configs/ocp-workloads/post_software.yml
@@ -49,7 +49,7 @@
      path: "{{ ocp_workloads.virtualenv_path}}/bin/python"
    register: r_virtualenv
  - name: Set Ansible Python interpreter to virtualenv
    when: r_virtualenv.exists
    when: r_virtualenv.stat.exists
    set_fact:
      ansible_python_interpreter: "{{ ocp_workloads.virtualenv_path }}/bin/python"