Commit 658b3d7e authored by Hinrikus Wolf's avatar Hinrikus Wolf
Browse files

Merge branch 'master' of git.fsmpi.rwth-aachen.de:infra/ansible

parents 26a7dd17 15877af7
...@@ -3,3 +3,9 @@ ...@@ -3,3 +3,9 @@
- name: restart autofs - name: restart autofs
service: name=autofs state=restarted service: name=autofs state=restarted
- name: restart nfs-common
service: name=nfs-common state=restarted
- name: reload sysfs.conf
service: name=sysfsutils state=restarted
...@@ -10,13 +10,40 @@ ...@@ -10,13 +10,40 @@
- name: ensure CIFS utils are installed - name: ensure CIFS utils are installed
apt: name=cifs-utils,smbclient state=latest apt: name=cifs-utils,smbclient state=latest
tags: tags:
- nfs-client
- cifs-client - cifs-client
- packages - packages
- name: ensure sysfs-utils are installed
apt: name=sysfsutils state=present
tags:
- nfs-client
- packages
- name: ensure we use the idmapper
command: 'echo "N" > /sys/module/nfs/parameters/nfs4_disable_idmapping'
notify:
- restart nfs-common
tags:
- nfs-client
- sysfs
- config
- name: ensure we use the idmapper after a reboot
lineinfile: line="module/nfs/parameters/nfs4_disable_idmapping = N" dest=/etc/sysfs.conf create=yes
notify:
- reload sysfs.conf
- restart nfs-common
tags:
- nfs-client
- sysfs
- config
# makes life much easier to have an automounter and not /etc/fstab # makes life much easier to have an automounter and not /etc/fstab
- name: ensure automounter is installed - name: ensure automounter is installed
apt: name=autofs state=latest apt: name=autofs state=latest
tags: tags:
- nfs-client
- autofs - autofs
- packages - packages
...@@ -25,12 +52,14 @@ ...@@ -25,12 +52,14 @@
notify: notify:
- restart autofs - restart autofs
tags: tags:
- nfs-client
- autofs - autofs
- config - config
- name: ensure mounts from central storage are available - name: ensure mounts from central storage are available
template: src=auto.nfs.j2 dest=/etc/auto.nfs owner=root group=root mode=0644 template: src=auto.nfs.j2 dest=/etc/auto.nfs owner=root group=root mode=0644
notify: notify:
- nfs-client
- restart autofs - restart autofs
tags: tags:
- autofs - autofs
...@@ -39,18 +68,21 @@ ...@@ -39,18 +68,21 @@
- name: ensure automounter is enabled - name: ensure automounter is enabled
service: name=autofs state=running enabled=yes service: name=autofs state=running enabled=yes
tags: tags:
- nfs-client
- autofs - autofs
- service - service
- name: ensure linking of home - name: ensure linking of home
script: create_netdir.sh home script: create_netdir.sh home
tags: tags:
- nfs-client
- fsmpi - fsmpi
- autofs - autofs
- name: ensure linking of pub - name: ensure linking of pub
script: create_netdir.sh pub script: create_netdir.sh pub
tags: tags:
- nfs-client
- fsmpi - fsmpi
- autofs - autofs
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment