Parcourir la source

fix lab install and add pip install before it

Grega Bremec il y a 1 semaine
Parent
commit
02a78c1e6a
1 fichiers modifiés avec 7 ajouts et 2 suppressions
  1. 7 2
      pre-flight.yml

+ 7 - 2
pre-flight.yml

@@ -36,9 +36,14 @@
         loop_var: role
       tags: deploy
 
-    - name: Install AD482 labs
+    - name: Install the AD482 package
+      ansible.builtin.pip:
+        name: rht-labs-ad482
+        extra_args: "--extra-index-url https://pypi.apps.tools-na.prod.nextcle.com/repository/labs/simple"
+
+    - name: Reinstall AD482 labs properly
       ansible.builtin.command:
-        cmd: lab install ad482 --version=1.8.6
+        cmd: lab install ad482 --version 1.8.6
         creates: /home/student/.local/lib/python3.11/site-packages/ad482
 
     - name: Patch API version of some templates