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

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