mullholland.mount
Ansible role mount
Configure mounts on your system
| GitHub | Downloads | Version |
|---|---|---|
Example Playbook
This example is taken from molecule/default/converge.yml and is tested on each push, pull request and release.
---
- name: Converge
hosts: all
become: true
gather_facts: true
vars:
mount_requests:
- path: "/mnt/tmp"
mode: "1777"
src: "/tmp"
fstype: "none"
opts: "bind"
roles:
- role: "mullholland.mount"
Role Variables
The default values for the variables are set in defaults/main.yml:
---
# Mount dependencies like nfs-client-tools must be installed seperately
mount_requests: []
# mount_requests:
# - path: "/mnt/backups" # Required
# owner: "root" # Optional (Default 'root')
# group: "root" # Optional (Default 'root')
# mode: "0750" # Optional (Default '7500')
# src: "10.0.0.10:/backups" # Optional (Default 'omit')
# boot: "true" # Optional (Default 'omit')
# fstype: "nfs" # Optional (Required when state is present or mounted.)
# opts: "defaults" # Optional (Default 'omit')
# dump: "0" # Optional (Default 'omit')
# pass: "0" # Optional (Default 'omit')
# state: "mounted" # Optional (Default 'mounted')
Requirements
- pip packages listed in requirements.txt.
Context
This role is a part of many compatible roles. Have a look at the documentation of these roles for further information.
Here is an overview of related roles:

Compatibility
This role has been tested on these container images:
| container | tags |
|---|---|
| EL | all |
| Amazon | Candidate |
| Fedora | all |
| Ubuntu | all |
| Debian | all |
The minimum version of Ansible required is 2.10, tests have been done to:
- The previous version.
- The current version.
- The development version.
If you find issues, please register them in GitHub.
License
MIT.
Author Information
Install
ansible-galaxy install mullholland.mountLicense
apache-2.0
Downloads
100
Owner
