Install snap on CentOS instead

This commit is contained in:
Khue Doan 2021-03-02 23:48:12 +07:00
parent d745da5167
commit 54d47535c9

View File

@ -1,7 +1,23 @@
- name: Install EPEL repository
yum:
name: epel-release
- name: Install snap
apt:
yum:
name: snapd
- name: Start snap service
service:
name: snapd.socket
state: started
enabled: yes
- name: Enable classic snap support
file:
src: /var/lib/snapd/snap
dest: /snap
state: link
- name: Get the latest snapd
snap:
name: core