September 2018
Beginner to intermediate
214 pages
5h 53m
English
This module is most handy when dealing with a virtualized infrastructure, but it can also be used with a bare metal setup. A disk must already exist in a remote host before that host can manage it. In a virtual environment, Ansible or other management tools allow you to automatically add disks to the host and then manage them using this module. The following is an example of a playbook for formatting a disk using this module:
- name: create a filesystem from a newly added disk filesystem: fstype: ext4 dev: /dev/sdc1
Read now
Unlock full access