mirror of
https://github.com/khuedoan/homelab.git
synced 2025-01-07 14:03:01 +07:00
Add prerequisite role
This commit is contained in:
parent
45f0407887
commit
64b7117e6a
27
roles/prerequisite/tasks/main.yml
Normal file
27
roles/prerequisite/tasks/main.yml
Normal file
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user