From 39766c0169e05b57303b489c414b242b868311ac Mon Sep 17 00:00:00 2001 From: qiaofeng1227 <76487013@qq.com> Date: Mon, 25 Jul 2022 15:32:52 +0800 Subject: [PATCH] Update main.yml --- apps/roles/role_common/tasks/main.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/apps/roles/role_common/tasks/main.yml b/apps/roles/role_common/tasks/main.yml index a16de0ad..348198e7 100644 --- a/apps/roles/role_common/tasks/main.yml +++ b/apps/roles/role_common/tasks/main.yml @@ -73,10 +73,14 @@ - hostname: name: "{{common_get_hostname.stdout}}" -- block: - - name: Install snap and yq +- block: + - name: Install snap tools + yum: + name: snapd + update_cache: yes + + - name: enable and create link for snap and install yq shell: | - yum install snapd -y systemctl enable --now snapd.socket ln -sf /var/lib/snapd/snap /snap snap install yq