From 9756d1ad17dfa5f3d85df912803983e04e0df986 Mon Sep 17 00:00:00 2001 From: qiaofeng1227 <76487013@qq.com> Date: Mon, 25 Jul 2022 13:52:19 +0800 Subject: [PATCH] Update main.yml --- apps/roles/role_common/tasks/main.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/apps/roles/role_common/tasks/main.yml b/apps/roles/role_common/tasks/main.yml index 934ee2e0..a16de0ad 100644 --- a/apps/roles/role_common/tasks/main.yml +++ b/apps/roles/role_common/tasks/main.yml @@ -73,8 +73,13 @@ - hostname: name: "{{common_get_hostname.stdout}}" -- name: Install yq - shell: snap install yq +- block: + - name: Install snap and yq + shell: | + yum install snapd -y + systemctl enable --now snapd.socket + ln -sf /var/lib/snapd/snap /snap + snap install yq # Install docker