Finalize NFS server install
This commit is contained in:
parent
bf47c6fab9
commit
d88f341d15
1 changed files with 21 additions and 0 deletions
|
@ -11,5 +11,26 @@
|
|||
|
||||
roles:
|
||||
- base
|
||||
- kerberos/client
|
||||
- ldap/client
|
||||
- ldap/nss
|
||||
- nfs-server
|
||||
- zfs
|
||||
- role: kerberos/keytab
|
||||
principals: "nfs/{{ inventory_hostname }}@FOO.SH"
|
||||
|
||||
tasks:
|
||||
- name: copy exports file
|
||||
copy:
|
||||
dest: /etc/exports
|
||||
content: |
|
||||
/export/home 172.20.30.0/24(rw,root_squash,secure,sec=krb5p) \
|
||||
@nfsclients-rw(rw,root_squash,secure) \
|
||||
@nfsclients-ro(ro,root_squash,secure)
|
||||
/export/roles 172.20.30.0/24(rw,root_squash,secure,sec=krb5p) \
|
||||
@nfsclients-rw(rw,root_squash,secure) \
|
||||
@nfsclients-ro(ro,root_squash,secure)
|
||||
mode: 0644
|
||||
owner: root
|
||||
group: "{{ ansible_wheel }}"
|
||||
notify: restart nfs-server
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue