buluma.mount
Ansible Role mount
Configure mounts on your systems.
GitHub | Version | Issues | Pull Requests | Downloads |
---|---|---|---|---|
Example Playbook
Here’s an example taken from molecule/default/converge.yml
, which is tested regularly.
---
- name: Set up mounts
hosts: all
become: true
gather_facts: true
roles:
- role: buluma.mount
mount_requests:
- path: /mnt/tmp
src: /tmp
opts: bind
fstype: none
mode: "1777"
Before using this role, prepare your machine with molecule/default/prepare.yml
:
---
- name: Prepare system
hosts: all
become: true
gather_facts: false
roles:
- role: buluma.bootstrap
You can also check this full explanation and example on how to apply these roles.
Role Variables
Default variable values are found in defaults/main.yml
:
---
# defaults file for mount
# The `mode`, `owner`, and `group` can be set in `mount_requests`, but
# defaults will be used if not specified.
mount_default_mode: "0750"
mount_default_owner: root
mount_default_group: root
# You can define mounts as variables here.
# All parameters for the `mount` module are supported.
# mount_requests:
# - path: /mnt/tmp
# src: /tmp
# opts: bind
# fstype: none
# - path: swap
# src: /dev/data/swap
# fstype: swap
# opts: sw
Requirements
- Python packages listed in requirements.txt.
State of Used Roles
Various roles are required to prepare the system, but you can use other methods if desired.
Requirement | GitHub | Version |
---|---|---|
buluma.bootstrap |
Context
This role works with other related roles. You can find more information in the documentation of these roles.
Here are the related roles:
Compatibility
This role is tested on the following container images:
Container | Tags |
---|---|
Alpine | all |
Debian | all |
EL | 8 |
Fedora | all |
openSUSE | all |
Ubuntu | all |
Kali | all |
You need at least Ansible version 2.12. Tests have been conducted on:
- The previous version
- The current version
- The development version
If you encounter any issues, please report them on GitHub.
Changelog
You can find the Role History here.
License
This role is licensed under Apache-2.0.
Author Information
Created by Shadow Walker.
ansible-galaxy install buluma.mount