AlphaHydrae.multipass

Ansible Multipass

This is an Ansible role that sets important information to help with multi-platform roles.

When you use this role, the following information will be set:

  • host_root_user - The name of the root user (e.g., root).
  • host_root_group - The group for the root user (e.g., root).
  • host_root_home - The home directory of the root user (e.g., /root).
  • host_user_homes - The main directory where user home directories are found (e.g., /home on Linux or /Users on macOS).
  • host_package_manager_paths - Extra directories to include in the PATH for the host's package manager (e.g., /usr/local/bin: for Homebrew).

Role Variables

All the following variables come with default values and are not required.

Common Defaults

  • multipass_root_user - The common name for the root user (defaults to root).
  • multipass_root_group - The common name for the root group (defaults to root).
  • multipass_root_home - The common home directory for the root user (defaults to /root).
  • multipass_user_homes - The common main directory for user home directories (defaults to /home).

macOS-Specific Defaults

  • multipass_darwin_root_user - The name of the root user on macOS (defaults to root).
  • multipass_darwin_root_group - The name of the root group on macOS (defaults to wheel).
  • multipass_darwin_root_home - The home directory of the root user on macOS (defaults to /var/root).
  • multipass_darwin_user_homes - The main directory for user home directories on macOS (defaults to /Users).

Homebrew-Specific Defaults

  • multipass_homebrew_paths - Extra directories to add to the PATH for Homebrew (defaults to /usr/local/bin:).

MacPorts-Specific Defaults

  • multipass_macports_paths - Extra directories to add to the PATH for MacPorts (defaults to /opt/local/bin:/opt/local/sbin:).

Example Playbook

- hosts: servers
  roles:
    - role: AlphaHydrae.multipass
Informazioni sul progetto

Sets OS-specific facts like the base path for root & user home directories.

Installa
ansible-galaxy install AlphaHydrae.multipass
Licenza
mit
Download
428
Proprietario