From 932bfbee5761106ec101408bb90f0b69fefe8de2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Herv=C3=A9=20=20MENAGER?= <herve.menager@pasteur.fr>
Date: Mon, 26 Jul 2021 22:38:19 +0000
Subject: [PATCH] fix ansible install problem

install generates a unicodedecodeerror if locales are not set
---
 .gitlab-ci.yml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index d35b35d3..b7c879ae 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -82,6 +82,10 @@ deploy-webserver:
     - yum update -y
     - yum install -y python36u python36u-libs python36u-devel python36u-pip openssl-devel  libffi-devel
     - python3.6 -m pip install --upgrade pip
+    - export PYTHONIOENCODING=utf8
+    - export LANG=en_US.UTF-8
+    - export LANGUAGE=en_US:en
+    - export LC_ALL=en_US.UTF-8
     - python3.6 -m pip install ansible
     - python3.6 -m pip install virtualenv
     - cd ansible
-- 
GitLab