SMB storage Ansible Automation playbook creation and usage
In this section, we will be looking at what is needed in order to set up SMB shares through Ansible Automation. This will allow for quicker setup across multiple servers. This will, in turn, also allow you to spend less time on the keyboard and more time focused on what you really want to learn. We have covered the different areas of Ansible in depth, from comments to names to modules. We are going to go through all of this again for SMB storage and show you how to set it up. This again is one way of doing it; there are others with Ansible that will be successful.
Let’s get started as we have with all of the other playbooks we have created. First, we will choose the inventory hosts and escalation points that we want to use. I showed you how to set up the inventory in previous sections so we will skip that. However, here is a snapshot of the inventory for your reference:
Figure 2.13 –...