Initial commit
This commit is contained in:
24
roles/NFS_mount/tasks/main.yml
Executable file
24
roles/NFS_mount/tasks/main.yml
Executable file
@@ -0,0 +1,24 @@
|
||||
---
|
||||
# tasks file for NFS_mount
|
||||
- name: NFS insert in FStab
|
||||
blockinfile:
|
||||
path: /etc/fstab
|
||||
block: |
|
||||
35.54.20.230:/repo /repo nfs
|
||||
- name: Mount NFS
|
||||
shell: 'mount -a'
|
||||
- name: Delete all repos deprecated or not working
|
||||
shell: 'rm -rf /etc/yum.repos.d/*'
|
||||
- name: Copy Media.repo
|
||||
copy:
|
||||
src: files/redhat.repo
|
||||
dest: /etc/yum.repos.d/
|
||||
- name: Clean cache of old's repos
|
||||
shell: 'yum clean all'
|
||||
- name: Update repos cache
|
||||
shell: 'yum makecache fast'
|
||||
- name: install the latest version of wget
|
||||
yum:
|
||||
name: wget
|
||||
state: latest
|
||||
|
||||
Reference in New Issue
Block a user