https://github.com/alphahydrae/ansible-multipass
Ansible role that sets facts to support multi-platform roles.
https://github.com/alphahydrae/ansible-multipass
Last synced: 4 months ago
JSON representation
Ansible role that sets facts to support multi-platform roles.
- Host: GitHub
- URL: https://github.com/alphahydrae/ansible-multipass
- Owner: AlphaHydrae
- License: mit
- Created: 2016-06-16T08:30:23.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2024-09-25T22:21:08.000Z (almost 2 years ago)
- Last Synced: 2025-01-19T22:15:26.991Z (over 1 year ago)
- Homepage: https://galaxy.ansible.com/AlphaHydrae/multipass/
- Size: 4.88 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Ansible Multipass
[Ansible](https://www.ansible.com) role that sets facts to support multi-platform roles.
The following facts will be set when you include this role:
* `host_root_user` - The username of the root user (e.g. `root`).
* `host_root_group` - The group of the root user (e.g. `root`).
* `host_root_home` - The home directory of the root user (e.g. `/root`).
* `host_user_homes` - The base directory where user home directories are located (e.g. `/home` on Linux or `/Users` on OS X).
* `host_package_manager_paths` - Additional directories to be added to the PATH for the host's package manager (e.g. `/usr/local/bin:` for Homebrew).
## Role Variables
All the following variables have defaults and are optional.
**Generic defaults**
* `multipass_root_user` - The generic name of the root user (defaults to `root`).
* `multipass_root_group` - The generic name of the root group (defaults to `root`).
* `multipass_root_home` - The generic home directory of the root user (defaults to `/root`).
* `multipass_user_homes` - The generic base directory where user home directories are located (defaults to `/home`).
**Darwin-specific defaults**
* `multipass_darwin_root_user` - The name of the root user on Darwin (defaults to `root`).
* `multipass_darwin_root_group` - The name of the root group on Darwin (defaults to `wheel`).
* `multipass_darwin_root_home` - The home directory of the root user on Darwin (defaults to `/var/root`).
* `multipass_darwin_user_homes` - The base directory where user home directories are located on Darwin (defaults to `/Users`).
**Homebrew-specific defaults**
* `multipass_homebrew_paths` - Additional directories to add to the PATH for Homebrew (defaults to `/usr/local/bin:`).
**MacPorts-specific defaults**
* `multipass_macports_paths` - Additional directories to add to the PATH for MacPorts (defaults to `/opt/local/bin:/opt/local/sbin:`).
## Example Playbook
- hosts: servers
roles:
- role: AlphaHydrae.multipass