Update main.yml

This commit is contained in:
qiaofeng1227 2022-07-25 15:32:52 +08:00 committed by GitHub
parent b3d02919bb
commit 39766c0169
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -74,9 +74,13 @@
name: "{{common_get_hostname.stdout}}" name: "{{common_get_hostname.stdout}}"
- block: - block:
- name: Install snap and yq - name: Install snap tools
yum:
name: snapd
update_cache: yes
- name: enable and create link for snap and install yq
shell: | shell: |
yum install snapd -y
systemctl enable --now snapd.socket systemctl enable --now snapd.socket
ln -sf /var/lib/snapd/snap /snap ln -sf /var/lib/snapd/snap /snap
snap install yq snap install yq