Stop the autofs server if the mount point must be changed.
This commit is contained in:
parent
c94b32b8f0
commit
873d11d516
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue