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