From 27ab1a8fa1c460b997ca1f91bdc434b06064bdb1 Mon Sep 17 00:00:00 2001 From: Dylan Rathbone Date: Wed, 4 Nov 2020 08:17:33 +1000 Subject: [PATCH] hotfix: Install lxml via pip ansible module --- bin/install-ansible | 5 +---- roles/crowd_config/tasks/main.yml | 4 ++++ 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/bin/install-ansible b/bin/install-ansible index 7b994b8..12561c6 100755 --- a/bin/install-ansible +++ b/bin/install-ansible @@ -8,10 +8,7 @@ if [[ $ID = "amzn" ]]; then python3-devel \ python3-pip \ python2-boto3 \ - python2-botocore \ - python-pip - - python -m pip install lxml + python2-botocore else # FIXME: Currently assumes Debian-based diff --git a/roles/crowd_config/tasks/main.yml b/roles/crowd_config/tasks/main.yml index 87aea58..9cd56ac 100644 --- a/roles/crowd_config/tasks/main.yml +++ b/roles/crowd_config/tasks/main.yml @@ -136,6 +136,8 @@ register: crowd_cfg_stat_result - name: Assert JDBC password to same as atl_jdbc_password + pip: + name: lxml==4.6.1 xml: path: "{{ atl_product_home_shared }}/crowd.cfg.xml" xpath: "/application-configuration/properties/property[@name='hibernate.connection.password']" @@ -143,6 +145,8 @@ when: crowd_cfg_stat_result.stat.exists - name: Assert JDBC url to same as atl_jdbc_url + pip: + name: lxml==4.6.1 xml: path: "{{ atl_product_home_shared }}/crowd.cfg.xml" xpath: "/application-configuration/properties/property[@name='hibernate.connection.url']"