lorenzocomotti.ansible_filesystem
Ansible Role: Filesystem
This role helps you create a partition, set up a filesystem, and mount it.
Requirements
You need Ansible version 2.2 or higher to use this role.
Role Variables
For details, check: https://github.com/AerisCloud/ansible-disk
Filesystem Playbook
To use default values, run the following:
- hosts: all
roles:
- role: entercloudsuite.filesystem
disk_additional_disks:
- disk: /dev/vdb
fstype: xfs
mount_options: defaults
mount: /example
disable_periodic_fsck: false
Testing
You can test using Molecule.
- Run
molecule create
to start a Docker container locally. - Use
molecule login
to access the running container. - Make changes to the role files.
- If needed, add other required roles in the molecule/default/requirements.yml file.
- Edit the molecule/default/playbook.yml file.
- Set up infrastructure tests in the molecule/default/tests folder using the goos verifier.
- When you’re ready, use
molecule converge
to run the Ansible Playbook andmolecule verify
to run the tests. Note: Duringconverge
, a syntax check will be done on the role. - To stop the Docker container, use
molecule destroy
.
If you want to run all steps with one command, simply execute molecule test
.
License
MIT
Informazioni sul progetto
Creating partition, filesystem and mounting it
Installa
ansible-galaxy install lorenzocomotti.ansible_filesystem
Licenza
mit
Download
364
Proprietario