neuro_ansible/yaml_sub/mount_info.yaml

102 lines
2 KiB
YAML
Raw Normal View History

2024-03-29 01:55:48 +01:00
---
2024-04-16 10:10:11 +02:00
- 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
2024-04-25 10:45:21 +02:00
2024-04-16 10:10:11 +02:00
- name: Make sure rpcbind service unit is started
systemd_service:
enabled: true
state: started
name: rpcbind
2024-03-29 01:55:48 +01:00
- name: Mount /home
2024-04-04 13:54:30 +02:00
ansible.posix.mount:
2024-03-29 01:55:48 +01:00
src: 10.10.1.21:/volume1/home_dir
path: /home
opts: rw,sync,hard,nolock
2024-04-25 10:45:21 +02:00
boot: true
2024-03-29 01:55:48 +01:00
state: mounted
fstype: nfs
2024-04-16 10:10:11 +02:00
2024-03-29 01:55:48 +01:00
- name: Mount /glocal
2024-04-04 13:54:30 +02:00
ansible.posix.mount:
2024-03-29 01:55:48 +01:00
src: 10.10.1.1:/volume1/glocal
path: /glocal
opts: rw,sync,hard,nolock
boot: true
2024-04-25 10:45:21 +02:00
state: absent
2024-03-29 01:55:48 +01:00
fstype: nfs
2024-04-16 10:10:11 +02:00
2024-03-29 01:55:48 +01:00
- name: Mount /tools
2024-04-04 13:54:30 +02:00
ansible.posix.mount:
2024-03-29 01:55:48 +01:00
src: 10.10.1.1:/volume1/tools
path: /tools
opts: rw,sync,hard,nolock
boot: true
state: mounted
fstype: nfs
2024-04-16 10:10:11 +02:00
2024-03-29 01:55:48 +01:00
- name: Mount /0
2024-04-04 13:54:30 +02:00
ansible.posix.mount:
2024-03-29 01:55:48 +01:00
src: 10.10.1.1:/volume1/data
path: /0
opts: rw,sync,hard,nolock
boot: true
state: mounted
fstype: nfs
2024-04-16 10:10:11 +02:00
2024-03-29 01:55:48 +01:00
- name: Mount /sge-root
2024-04-04 13:54:30 +02:00
ansible.posix.mount:
2024-03-29 01:55:48 +01:00
src: 10.10.10.16:/sge-root
path: /sge-root
opts: rw,sync,hard
boot: true
state: mounted
fstype: nfs
2024-04-16 10:10:11 +02:00
2024-04-18 19:44:07 +02:00
# - 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
2024-04-18 10:48:34 +02:00
- 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
2024-03-29 01:55:48 +01:00
state: mounted
fstype: nfs
2024-04-16 10:10:11 +02:00
2024-04-18 19:44:07 +02:00
# - 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
2024-04-18 10:48:34 +02:00
- name: Mount /web
ansible.posix.mount:
src: 10.10.1.51:/volume1/web
path: /web
opts: rw,sync,hard,nolock
boot: true
2024-03-29 01:55:48 +01:00
state: mounted
fstype: nfs