Fix the installation of the conf files.

This commit is contained in:
Andrea Dell'Amico 2022-03-21 19:07:47 +01:00
parent 8aa348b74a
commit 53fb205312
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
2 changed files with 7 additions and 4 deletions

View File

@ -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

View File

@ -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