Suggest yaml code my requirement

Hello All,

Could you please any one suggest YAML code for the below requirement

"i want to mount path on servers which is like dynamic , the mount path name ends with servername, so we have 50 servers.

path: /export/var/server1 it should mount only on “server1”

like that /export/var/server2 should be mounted on only on “server2”