From 86574c5cc30f68464b65a6f4f3937c34c66948e5 Mon Sep 17 00:00:00 2001 From: qiaofeng1227 <76487013@qq.com> Date: Mon, 25 Jul 2022 17:03:54 +0800 Subject: [PATCH] Update main.yml --- apps/roles/role_common/tasks/main.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/apps/roles/role_common/tasks/main.yml b/apps/roles/role_common/tasks/main.yml index d7afd0c1..b3007f7d 100644 --- a/apps/roles/role_common/tasks/main.yml +++ b/apps/roles/role_common/tasks/main.yml @@ -74,6 +74,17 @@ name: "{{common_get_hostname.stdout}}" - block: + - name: Install snap tools + yum: + name: snapd + update_cache: yes + when: ansible_os_family == "RedHat" + - 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