mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-01-24 10:17:15 +08:00
Update main.yml
This commit is contained in:
parent
725d4ba89a
commit
9d17dcfe83
@ -77,16 +77,22 @@
|
||||
- name: Install snap tools
|
||||
yum:
|
||||
name: snapd
|
||||
update_cache: yes
|
||||
|
||||
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}}
|
||||
shell: |
|
||||
curl -fsSL https://get.docker.com -o get-docker.sh && sh get-docker.sh
|
||||
|
Loading…
Reference in New Issue
Block a user