nfs_server: Move exports file under roles

This commit is contained in:
Timo Makinen 2024-12-17 20:16:02 +00:00
parent 112ad23a66
commit 9fd303c4ad
3 changed files with 15 additions and 18 deletions

View file

@ -39,21 +39,3 @@
- nfs_server
- role: keytab
keytab_principals: "nfs/{{ inventory_hostname }}@FOO.SH"
tasks:
- name: Copy exports file
ansible.builtin.copy:
dest: /etc/exports
content: |
/export/home 172.20.20.0/22(rw,root_squash,secure,sec=krb5p) \
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.20.0/22(rw,root_squash,secure,sec=krb5p) \
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