i want to include this logic in my role
- name: i want to check that NFS share is accessible and R/W
module_to_check_nfs_share: touch {{ nfs_share_path }} ( for example , or cd to it)
- name: add NFS share path to elasticsearch config
template: ...
when: nfs_module == success
how to do something like this using the ansible? so my scenario is , to try write something or cd to NFS share and make sure that NFS filesystem is accessible and is ok