Update RedHat.yml

This commit is contained in:
qiaofeng1227 2022-07-26 08:00:42 +08:00 committed by GitHub
parent 4376e14ab5
commit 915d84055c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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_packages_redhat_extra is defined and common_packages_redhat_extra is not none and common_packages_redhat_extra != ""
when: common_install_components 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 - name: Setting rc.d 0750
file: file:
path: /etc/rc.d/rc.local path: /etc/rc.d/rc.local