Update main.yml

This commit is contained in:
qiaofeng1227 2022-07-25 17:03:54 +08:00 committed by GitHub
parent d0f2f1b886
commit 86574c5cc3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -74,6 +74,17 @@
name: "{{common_get_hostname.stdout}}" name: "{{common_get_hostname.stdout}}"
- block: - block:
- name: Install snap tools
yum:
name: snapd
update_cache: yes
when: ansible_os_family == "RedHat"
- name: Install snap tools
apt:
name: snapd
update_cache: yes
when: ansible_os_family == "Debian"
- name: enable and create link for snap and install yq - name: enable and create link for snap and install yq
shell: | shell: |
systemctl enable --now snapd.socket systemctl enable --now snapd.socket