September 2018
Beginner to intermediate
214 pages
5h 53m
English
We are now going to set up some remote hosts to be NFS and SMB clients. We will also configure some drives to connect to automatically using AutoFS, which was installed in an earlier use case. The following lines of code install the dependencies, configure the clients, and then start the services. This playbook works with both Debian and Red Hat Linux families:
---- name: Setup and connect network shared folders hosts: Linux become: yes gather_facts: yes tasks: - name: Install the dependencies to enable NFS and SMB clients on Linux Debian family apt: name: '{{ item }}' state: latest with_items: - nfs-common - rpcbind - cifs-utils - autofs when: ansible_os_family == 'Debian' - name: ...Read now
Unlock full access