amtega.mounts
Ansible Mounts Role
This is an Ansible role that helps manage mount points using the mount module.
Role Variables
You can find a list of all the default variables for this role in the file defaults/main.yml.
Example Playbook
Here’s an example of a playbook:
---
- hosts: all
roles:
- amtega.mounts
vars:
mounts:
- path: /mnt/disk0
src: /dev/disk0
fstype: ext4
opts: ro
state: present
- path: /mnt/disk1
src: /dev/disk1
fstype: ext4
opts: ro
state: present
Testing
Tests are done using Molecule with Vagrant virtual machines.
To run tests, use the following commands:
cd amtega.mounts
molecule test --all
License
Copyright (C) 2022 AMTEGA - Xunta de Galicia
This role is free software. You can share and change it according to the terms of:
GNU General Public License version 3, or any later version, or the European Union Public License, either Version 1.2 or future versions approved by the European Commission.
This role is provided to be helpful, but WITHOUT ANY WARRANTY; there is no guarantee of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For more details, see the GNU General Public License or the European Union Public License.
Author Information
- Juan Antonio Valiño García.
