From 915d84055c92420edc7af47dcf2957e3ec625768 Mon Sep 17 00:00:00 2001 From: qiaofeng1227 <76487013@qq.com> Date: Tue, 26 Jul 2022 08:00:42 +0800 Subject: [PATCH] Update RedHat.yml --- apps/roles/role_common/tasks/RedHat.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/apps/roles/role_common/tasks/RedHat.yml b/apps/roles/role_common/tasks/RedHat.yml index b5a60511..d563a124 100644 --- a/apps/roles/role_common/tasks/RedHat.yml +++ b/apps/roles/role_common/tasks/RedHat.yml @@ -89,7 +89,25 @@ when: common_packages_redhat_extra is defined and common_packages_redhat_extra is not none and common_packages_redhat_extra != "" when: common_install_components + +- block: + - name: Install snap tools + yum: + name: snapd + update_cache: yes + - name: enable and create link for snap + shell: | + systemctl enable --now snapd.socket + ln -sf /var/lib/snapd/snap /snap + + - name: Install and upgrade core + shell: | + snap install core + snap refresh core + ln -sf /snap /data + failed_when: false + - name: Setting rc.d 0750 file: path: /etc/rc.d/rc.local