diff --git a/defaults/main.yml b/defaults/main.yml index 06d3285..634b569 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -46,6 +46,9 @@ autofs_maps: [] nfs_server_enabled: False nfs_server_ganesha_enabled: '{{ nfs_server }}' +nfs_ganesha_conf_files: + - ganesha.conf + nfs_server_ganesha_el_repos: - centos-release-nfs-ganesha28 - centos-release-ceph-nautilus diff --git a/tasks/ganesha-nfs.yml b/tasks/ganesha-nfs.yml index 903f45f..1399a02 100644 --- a/tasks/ganesha-nfs.yml +++ b/tasks/ganesha-nfs.yml @@ -55,13 +55,13 @@ - name: Install and configure ganesha exports using the VFS backend block: - name: Install the ganesha configuration files - template: src={{ item }}.j2 dest=/etc/ganesha/{{ item }} owner=root group=root mode=0644 - loop: '{{ san_ganesha_conf_files }}' + ansible.builtin.template: src={{ item }}.j2 dest=/etc/ganesha/{{ item }} owner=root group=root mode=0644 + loop: '{{ nfs_ganesha_conf_files }}' register: ganesha_conf_files - name: Install the ganesha export files - template: src={{ item }}.j2 dest=/etc/ganesha/{{ item }} owner=root group=root mode=0644 - loop: '{{ san_ganesha_export_files }}' + ansible.builtin.template: src={{ item.name }}.j2 dest=/etc/ganesha/{{ item.name }} owner=root group=root mode=0644 + loop: '{{ nfs_server_ganesha_exports }}' register: ganesha_conf_files - name: Ensure that ganesha is started and enabled