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
9d17dcfe83
commit
35aaee2e8b
@ -74,23 +74,11 @@
|
|||||||
name: "{{common_get_hostname.stdout}}"
|
name: "{{common_get_hostname.stdout}}"
|
||||||
|
|
||||||
- block:
|
- 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
|
- name: enable and create link for snap and install yq
|
||||||
shell: |
|
shell: |
|
||||||
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
|
||||||
when: ansible_os_family == "RedHat"
|
|
||||||
|
|
||||||
# Install docker
|
# Install docker
|
||||||
- name: Install Docker on {{ansible_distribution}}
|
- name: Install Docker on {{ansible_distribution}}
|
||||||
|
Loading…
Reference in New Issue
Block a user