Initial commit
This commit is contained in:
22
roles/NFS-Server/tasks/main.yml
Executable file
22
roles/NFS-Server/tasks/main.yml
Executable file
@@ -0,0 +1,22 @@
|
||||
---
|
||||
# tasks file for NFS-Server
|
||||
- name: NFS-Server start process
|
||||
systemd:
|
||||
state: started
|
||||
name: nfs-server
|
||||
- name: Create Repo
|
||||
blockinfile:
|
||||
path: /etc/exports
|
||||
block: |
|
||||
/repo * (rw,sync,no_subtree_check)
|
||||
- name: Delete old Repos
|
||||
shell: 'rm -rf /etc/yum.repos.d/*'
|
||||
- name: Copy Media.repo
|
||||
copy:
|
||||
src: files/media.repo
|
||||
dest: /etc/yum.repos.d/
|
||||
- name: Clean all old repos and packages
|
||||
shell: 'yum clean all'
|
||||
- name: Update Repo
|
||||
shell: 'yum makecache fast'
|
||||
|
||||
Reference in New Issue
Block a user