The source files for this tutorial can be downloaded from its GitHub repository, or cloned into your current working directory using the command git clone https://github.com/ionos-cloud/module-ansible.git before changing into the module-ansible/docs/tutorials/05__introducing_roles sub-directory.
01__create_jumpbox_and_nlb.yml
---# ==============================================================================- name:About to execute tasks file for role 'nfs-client'ansible.builtin.meta:noop- name:Install the NFS clientansible.builtin.package:name: - nfs-commonstate:present- name:Install autofsansible.builtin.package:name: - autofsstate:present- name:Add an entry to /etc/auto.masteransible.builtin.lineinfile:path:/etc/auto.masterline:'/- /etc/auto.nfs'- name:Create / add an entry to /etc/auto.nfsansible.builtin.lineinfile:path:/etc/auto.nfsline:"{{ nfs_mount_point }} {{ nfs_server_path }}"create:yeswhen:nfs_server_path | length > 0- name:Restart the automounter service so these changes can take effectansible.builtin.service:name:autofsstate:restarted