From 5d41f61ab4127960e921216cb60674883718acef Mon Sep 17 00:00:00 2001 From: Dan Radez Date: Thu, 24 Aug 2017 14:12:00 -0400 Subject: Skip the python3 vbmc patch - vbmc has already been imported so we know it's there if vbmc is located in a different spot than the hardcoded location just skip the patch Change-Id: I765fb94c09e0775084ecd37659f4900411eb0e3e Signed-off-by: Dan Radez --- lib/ansible/playbooks/deploy_dependencies.yml | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/ansible') diff --git a/lib/ansible/playbooks/deploy_dependencies.yml b/lib/ansible/playbooks/deploy_dependencies.yml index 77231622..6db94ab4 100644 --- a/lib/ansible/playbooks/deploy_dependencies.yml +++ b/lib/ansible/playbooks/deploy_dependencies.yml @@ -59,8 +59,13 @@ when: ansible_architecture == "x86_64" - name: Generate SSH key for root if missing shell: test -e ~/.ssh/id_rsa || ssh-keygen -t rsa -N "" -f ~/.ssh/id_rsa + - name: Check that /u/l/python3.4/site-packages/virtualbmc/vbmc.py exists + stat: + path: /usr/lib/python3.4/site-packages/virtualbmc/vbmc.py + register: vbmc_py - name: Manually patch vmbc to work with python3.x lineinfile: line: " conn.defineXML(ET.tostring(tree, encoding='unicode'))" regexp: "tostring" path: /usr/lib/python3.4/site-packages/virtualbmc/vbmc.py + when: vbmc_py.stat.exists == True -- cgit 1.2.3-korg