neuro_ansible/yaml_sub/mount_info.yaml
David Rotermund c345ec7866 Update
2024-04-25 10:45:21 +02:00

101 lines
2 KiB
YAML

---
- name: remove other files
include_tasks: yaml_sub/myrepo_clean.yaml
- name: update file myrepo.repo
import_tasks: yaml_sub/myrepo_data.yaml
- name: install nfs tools
dnf:
name: nfs-utils,nfs-utils-coreos,nfsv4-client-utils,rpcbind
state: present
update_cache: true
skip_broken: true
nobest: false
allowerasing: true
- name: Make sure rpcbind service unit is started
systemd_service:
enabled: true
state: started
name: rpcbind
- name: Mount /home
ansible.posix.mount:
src: 10.10.1.21:/volume1/home_dir
path: /home
opts: rw,sync,hard,nolock
boot: true
state: mounted
fstype: nfs
- name: Mount /glocal
ansible.posix.mount:
src: 10.10.1.1:/volume1/glocal
path: /glocal
opts: rw,sync,hard,nolock
boot: true
state: absent
fstype: nfs
- name: Mount /tools
ansible.posix.mount:
src: 10.10.1.1:/volume1/tools
path: /tools
opts: rw,sync,hard,nolock
boot: true
state: mounted
fstype: nfs
- name: Mount /0
ansible.posix.mount:
src: 10.10.1.1:/volume1/data
path: /0
opts: rw,sync,hard,nolock
boot: true
state: mounted
fstype: nfs
- name: Mount /sge-root
ansible.posix.mount:
src: 10.10.10.16:/sge-root
path: /sge-root
opts: rw,sync,hard
boot: true
state: mounted
fstype: nfs
# - name: Mount /data_1
# ansible.posix.mount:
# src: 10.10.1.31:/volume1/data
# path: /data_1
# opts: rw,sync,hard,nolock
# boot: true
# state: absent
# fstype: nfs
- name: Mount /data_1
ansible.posix.mount:
src: 10.10.1.51:/volume1/data_1
path: /data_1
opts: rw,sync,hard,nolock
boot: true
state: mounted
fstype: nfs
# - name: Mount /web
# ansible.posix.mount:
# src: 10.10.1.1:/volume1/web
# path: /web
# opts: rw,sync,hard,nolock
# boot: true
# state: absent
# fstype: nfs
- name: Mount /web
ansible.posix.mount:
src: 10.10.1.51:/volume1/web
path: /web
opts: rw,sync,hard,nolock
boot: true
state: mounted
fstype: nfs