nfs_client.yml 610 B

12345678910111213141516171819202122
  1. ---
  2. - name: Access an NFS share
  3. hosts: servera.lab.example.com
  4. become: true
  5. vars:
  6. shared_dir: /srv/operators
  7. mount_point: /operators_data
  8. tasks:
  9. - name: the package for NFS client is installed
  10. yum:
  11. name: #FIXME: install the required package for an NFS client
  12. state: present
  13. - name: the NFS share is mounted and in /etc/fstab
  14. mount:
  15. #FIXME: persistently mount {{ shared_dir }} from serverc.lab.example.com
  16. # into the {{ mount_point }} directory
  17. path: #FIXME#
  18. src: #FIXME#
  19. state: mounted
  20. fstype: #FIXME#