Files
Ansible_/roles/NFS-Server/tasks/main.yml
2020-08-18 07:42:39 +02:00

23 lines
494 B
YAML
Executable File

---
# 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'