diff --git a/roles/prerequisite/tasks/main.yml b/roles/prerequisite/tasks/main.yml new file mode 100644 index 00000000..62cf8239 --- /dev/null +++ b/roles/prerequisite/tasks/main.yml @@ -0,0 +1,27 @@ +- name: Upgrade all packages + yum: + name: '*' + state: latest + +- name: Enable EPEL repository + yum: + name: epel-release + state: present + +- name: Install snap + yum: + name: snapd + state: present + +- name: Enable snapd + service: + name: snapd + enabled: yes + state: started + +- name: Enable classic snap support + file: + src: /var/lib/snapd/snap + dest: /snap + state: link +