diff --git a/apps/roles/role_common/tasks/main.yml b/apps/roles/role_common/tasks/main.yml index b3007f7d..19867e73 100644 --- a/apps/roles/role_common/tasks/main.yml +++ b/apps/roles/role_common/tasks/main.yml @@ -74,20 +74,10 @@ 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 + sleep 30s ln -sf /var/lib/snapd/snap /snap snap install yq