From: Cédric Ollivier <cedric.ollivier@orange.com>
Date: Fri, 14 Mar 2025 10:26:11 +0000 (+0100)
Subject: Remove EOL distrib
X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=7499d6be5cb22a83a5a4fdd6ceeebbf1d7b1abdc;p=releng.git

Remove EOL distrib

It also takes into account that Ansible collections
are already installed.

Change-Id: I6bad704228c3e79f21e67f6590bee422fd4c4740
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
---

diff --git a/jjb/functest/xtesting-ci.yaml b/jjb/functest/xtesting-ci.yaml
index b8d8ed767..efd11eb1f 100644
--- a/jjb/functest/xtesting-ci.yaml
+++ b/jjb/functest/xtesting-ci.yaml
@@ -253,8 +253,7 @@
             ansible-galaxy install -f git+https://github.com/collivier/ansible-role-xtesting.git,{release} && \
             mv ~/.ansible/roles/ansible-role-xtesting ~/.ansible/roles/collivier.xtesting ;; \
           esac && \
-          ansible-galaxy collection install ansible.posix community.general community.grafana \
-            community.kubernetes community.docker community.postgresql community.crypto && \
+          ansible-galaxy collection install community.kubernetes && \
           ansible-playbook -vvvv ~/.ansible/roles/collivier.xtesting/tests/{playbook}.yml"
 
 - job-template:
@@ -305,9 +304,6 @@
           apt update && DEBIAN_FRONTEND=noninteractive apt \
             -o DPkg::Lock::Timeout=300 install docker.io vim iproute2 git sudo -y && \
           case {ubuntu} in \
-          bionic) \
-            [ -z "$VIRTUAL_ENV" ] && sudo DEBIAN_FRONTEND=noninteractive apt \
-              -o DPkg::Lock::Timeout=300 install python3-pip -y && sudo LC_CTYPE=C.UTF-8 pip3 install ansible ;; \
           focal) \
             [ -z "$VIRTUAL_ENV" ] && sudo DEBIAN_FRONTEND=noninteractive apt \
               -o DPkg::Lock::Timeout=300 install python3-pip -y && sudo pip3 install ansible ;; \
@@ -326,8 +322,7 @@
             ansible-galaxy install -f git+https://github.com/collivier/ansible-role-xtesting.git,{release} && \
             mv ~/.ansible/roles/ansible-role-xtesting ~/.ansible/roles/collivier.xtesting ;; \
           esac && \
-          ansible-galaxy collection install ansible.posix community.general community.grafana \
-            community.kubernetes community.docker community.postgresql community.crypto && \
+          ansible-galaxy collection install community.kubernetes && \
           case {ubuntu} in \
           oracular) \
             ansible-galaxy collection install -f community.docker ;; \
@@ -394,8 +389,7 @@
             ansible-galaxy install -f git+https://github.com/collivier/ansible-role-xtesting.git,{release} && \
             mv ~/.ansible/roles/ansible-role-xtesting ~/.ansible/roles/collivier.xtesting ;; \
           esac && \
-          ansible-galaxy collection install ansible.posix community.general community.grafana \
-            community.kubernetes community.docker community.postgresql community.crypto && \
+          ansible-galaxy collection install community.kubernetes && \
           case {alpine} in \
           "3.18") \
             [ -z "$VIRTUAL_ENV" ] && apk add ansible git ;; \