Просмотр исходного кода

replace yum with package module

replaced all `yum` with `package` module, the project still has other `yum` commands that need to be converted to use the module and use a where clause for different OS versions

Signed-off-by: John lockman <john.lockman@friday.local>
John lockman 4 лет назад
Родитель
Сommit
b7e8ce1e5c

+ 2 - 2
kubernetes/roles/common/tasks/main.yml

@@ -57,7 +57,7 @@
   tags: install
 
 - name: install common packages
-  yum:
+  package:
     name:
       - yum-plugin-versionlock
       - gcc
@@ -78,7 +78,7 @@
 
 
 - name: install InfiniBand Support
-  yum:
+  package:
     name: "@Infiniband Support"
     state: present
 

+ 2 - 2
kubernetes/roles/computeGPU/tasks/main.yml

@@ -14,7 +14,7 @@
 
 ---
 - name: install Nvidia driver
-  yum:
+  package:
     name:
       - kmod-nvidia
       #- nvidia-x11-drv
@@ -42,7 +42,7 @@
   tags: testing
 
 - name: install Nvidia-container-runtime-hook
-  yum:
+  package:
     name:
       #- nvidia-detect
       #- kmod-nvidia-410.73-1.el7_5.elrepo

+ 1 - 1
slurm/roles/slurm-common/tasks/main.yml

@@ -14,7 +14,7 @@
 ---
 
 - name: install packages for slurm
-  yum:
+  package:
     name:
       - munge
       - mariadb