diff --git a/tasks/autofs.yml b/tasks/autofs.yml index f94e61d..c2c8c3b 100644 --- a/tasks/autofs.yml +++ b/tasks/autofs.yml @@ -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