From 3aef499a1fab3665a440dd68afe5c9172cb9a479 Mon Sep 17 00:00:00 2001 From: qiaofeng1227 <76487013@qq.com> Date: Tue, 26 Jul 2022 08:03:11 +0800 Subject: [PATCH] Update main.yml --- apps/roles/role_common/tasks/main.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/apps/roles/role_common/tasks/main.yml b/apps/roles/role_common/tasks/main.yml index d5f2af57..ec2e041e 100644 --- a/apps/roles/role_common/tasks/main.yml +++ b/apps/roles/role_common/tasks/main.yml @@ -73,12 +73,8 @@ - hostname: name: "{{common_get_hostname.stdout}}" -- block: - - name: enable and create link for snap and install yq - shell: | - systemctl enable --now snapd.socket - sleep 30s - snap install yq +- name: Snap install yq + shell: snap install yq # Install docker - name: Install Docker on {{ansible_distribution}}