Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding variable control of kernel update #207

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions ansible/docker-playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
install_gcsfuse: true
install_pmix: true
install_pyxis: true
update_kernel: true

pre_tasks:
- name: Minimum Ansible Version Check
Expand Down Expand Up @@ -117,6 +118,7 @@
vars:
reboot: false
tpu_docker_image: true
update_kernel: "{{ update_kernel }}"
- role: selinux
vars:
reboot: false
Expand Down
1 change: 1 addition & 0 deletions ansible/roles/kernel/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@

reboot: true
tpu_docker_image: false
update_kernel: true
10 changes: 9 additions & 1 deletion ansible/roles/kernel/tasks/os/redhat-7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,15 @@

when: reboot

- name: Install {{ansible_os_family}} Family Kernel Packages
- name: Install {{ansible_os_family}} Family Kernel Package
dnf:
name:
- kernel
state: latest
update_cache: yes
when: update_kernel

- name: Install {{ansible_os_family}} Family Kernel Helper Packages
yum:
name:
- kernel
Expand Down
11 changes: 9 additions & 2 deletions ansible/roles/kernel/tasks/os/redhat-8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,24 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
- name: Install {{ansible_os_family}} Family Kernel Packages
- name: Install {{ansible_os_family}} Family Kernel Package
dnf:
name:
- kernel
- '{{ ansible_distribution | lower }}-release'
state: latest
update_cache: yes
when: update_kernel

- name: Install {{ansible_os_family}} Family Kernel Helper Packages
dnf:
name:
- kernel-devel
- kernel-headers
- kernel-modules
- kernel-tools
- kernel-tools-libs
#- kernel-tools-libs-devel
- '{{ ansible_distribution | lower }}-release'
state: latest
update_cache: yes
- block:
Expand Down
11 changes: 9 additions & 2 deletions ansible/roles/kernel/tasks/os/redhat-9.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,24 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
- name: Install {{ansible_os_family}} Family Kernel Packages
- name: Install {{ansible_os_family}} Family Kernel Package
dnf:
name:
- kernel
- '{{ ansible_distribution | lower }}-release'
state: latest
update_cache: yes
when: update_kernel

- name: Install {{ansible_os_family}} Family Kernel Helper Packages
dnf:
name:
- kernel-devel
- kernel-headers
- kernel-modules
- kernel-tools
- kernel-tools-libs
#- kernel-tools-libs-devel
- '{{ ansible_distribution | lower }}-release'
state: latest
update_cache: yes
- block:
Expand Down