Update main.yml

This commit is contained in:
qiaofeng1227 2022-07-25 16:51:11 +08:00 committed by GitHub
parent 9d17dcfe83
commit 35aaee2e8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -74,23 +74,11 @@
name: "{{common_get_hostname.stdout}}"
- block:
- name: Install snap tools
yum:
name: snapd
update_cache: yes
when:
- 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
shell: |
systemctl enable --now snapd.socket
ln -sf /var/lib/snapd/snap /snap
snap install yq
when: ansible_os_family == "RedHat"
# Install docker
- name: Install Docker on {{ansible_distribution}}