lorenzocomotti.ansible_filesystem

Ansible Role: Filesystem

Build Status Galaxy

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.

  1. Run molecule create to start a Docker container locally.
  2. Use molecule login to access the running container.
  3. Make changes to the role files.
  4. If needed, add other required roles in the molecule/default/requirements.yml file.
  5. Edit the molecule/default/playbook.yml file.
  6. Set up infrastructure tests in the molecule/default/tests folder using the goos verifier.
  7. When you’re ready, use molecule converge to run the Ansible Playbook and molecule verify to run the tests. Note: During converge, a syntax check will be done on the role.
  8. 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