lorenzocomotti.ansible_filesystem
Ansible Role: Filesystem
Creating partition, filesystem and mounting it
Requirements
This role requires Ansible 2.2 or higher.
Role Variables
Refer to https://github.com/AerisCloud/ansible-disk
Filesystem Playbook
Run with default vars:
- hosts: all
roles:
- role: entercloudsuite.filesystem
disk_additional_disks:
- disk: /dev/vdb
fstype: xfs
mount_options: defaults
mount: /example
disable_periodic_fsck: false
Testing
Tests are performed using Molecule.
- Run
molecule createto start the target Docker container on your local engine. - Use
molecule loginto log in to the running container. - Edit the role files.
- Add other required roles (external) in the molecule/default/requirements.yml file.
- Edit the molecule/default/playbook.yml.
- Define infra tests under the molecule/default/tests folder using the goos verifier.
- When ready, use
molecule convergeto run the Ansible Playbook andmolecule verifyto execute the test suite.
Note that the converge process starts performing a syntax check of the role.
Destroy the Docker container with the commandmolecule destroy.
To run all the steps with just one command, run molecule test.
License
MIT
Install
ansible-galaxy install lorenzocomotti.ansible_filesystemLicense
mit
Downloads
375
Owner
