浏览代码

ensure pip is 3.11

Grega Bremec 1 周之前
父节点
当前提交
1cb24c92e8
共有 1 个文件被更改,包括 3 次插入5 次删除
  1. 3 5
      pre-flight.yml

+ 3 - 5
pre-flight.yml

@@ -43,14 +43,12 @@
         state: absent
         state: absent
 
 
     - name: Install the AD482 package
     - 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"
+      ansible.builtin.command:
+        command: pip3.11 install rht-labs-ad482 --extra-index-url https://pypi.apps.tools-na.prod.nextcle.com/repository/labs/simple
 
 
     - name: Reinstall AD482 labs properly
     - name: Reinstall AD482 labs properly
       ansible.builtin.command:
       ansible.builtin.command:
-        cmd: lab install ad482 --version 1.8.6
-        creates: /home/student/.local/lib/python3.11/site-packages/ad482
+        cmd: lab install ad482 --version 1.8.6 -u
 
 
     - name: Patch API version of some templates
     - name: Patch API version of some templates
       ansible.posix.patch:
       ansible.posix.patch: