소스 검색

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
 
     - 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
       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
       ansible.posix.patch: