Merge "BaR: Keep /etc/exports content"
This commit is contained in:
commit
42737784bc
@ -85,14 +85,17 @@
|
|||||||
tags:
|
tags:
|
||||||
- bar_setup_nfs_server
|
- bar_setup_nfs_server
|
||||||
|
|
||||||
- name: Generate NFS exports table in the server
|
- name: Get the lines
|
||||||
become: true
|
set_fact:
|
||||||
template:
|
bar_exportfs_lines: "{% for net in tripleo_backup_and_restore_nfs_clients_nets %}\
|
||||||
src: exports.j2
|
{{ tripleo_backup_and_restore_nfs_storage_folder }} {{ net }}(rw,sync,no_root_squash,no_subtree_check)\n{% endfor %}"
|
||||||
dest: /etc/exports
|
tags:
|
||||||
owner: root
|
- bar_setup_nfs_server
|
||||||
group: root
|
|
||||||
mode: '0644'
|
- name: NFS
|
||||||
|
blockinfile:
|
||||||
|
path: /etc/exports
|
||||||
|
block: "{{bar_exportfs_lines}}"
|
||||||
backup: true
|
backup: true
|
||||||
tags:
|
tags:
|
||||||
- bar_setup_nfs_server
|
- bar_setup_nfs_server
|
||||||
|
@ -1,8 +0,0 @@
|
|||||||
# This configuration file is generated automatically
|
|
||||||
# by the backup_and_restore role part of TripleO
|
|
||||||
# Ansible. No not edit this file, all changes
|
|
||||||
# will be lost. Refer to the following URL for
|
|
||||||
# more information and implementation details:
|
|
||||||
# https://opendev.org/openstack/tripleo-ansible
|
|
||||||
|
|
||||||
{{ tripleo_backup_and_restore_nfs_storage_folder }} {% for net in tripleo_backup_and_restore_nfs_clients_nets %}{{ net }}(rw,sync,no_root_squash,no_subtree_check) {% endfor %}
|
|
Loading…
Reference in New Issue
Block a user