Stop the autofs server if the mount point must be changed.

This commit is contained in:
Andrea Dell'Amico 2022-01-28 17:28:56 +01:00
parent c94b32b8f0
commit 873d11d516
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 8 additions and 0 deletions

View File

@ -15,6 +15,14 @@
when: ansible_distribution_file_variety == "RedHat"
tags: [ 'nfs', 'autofs' ]
- name: Stop autofs if it is a 'hard' reconfiguration
block:
- name: Stop autofs
service: name=autofs state=stopped
when: autofs_hard_reconfig is defined and autofs_hard_reconfig
tags: [ 'nfs', 'autofs', 'autofs_conf' ]
- name: Configure autofs and its maps
block:
- name: Create the mount points