darkwizard242.mc

Ansible Role: mc

This role installs mc, which is the MinIO client, on Debian/Ubuntu and EL systems. mc allows you to interact with filesystems and Amazon S3 compatible cloud storage.

Requirements

No special requirements.

Role Variables

Here are the variables you can use (found in defaults/main.yml):

Variables list:

mc_app: mc
mc_os: "{{ ansible_system | lower }}"
mc_architecture_map:
  amd64: amd64
  arm: arm64
  x86_64: amd64
  armv6l: armv6
  armv7l: armv7
  aarch64: arm64
  32-bit: "386"
  64-bit: amd64
mc_dl_url: https://dl.min.io/client/{{ mc_app }}/release/{{ mc_os }}-{{ mc_architecture_map[ansible_architecture] }}/{{ mc_app }}
mc_bin_path: "/usr/local/bin/{{ mc_app }}"
mc_file_owner: root
mc_file_group: root
mc_file_mode: '0755'

Variables table:

Variable Description
mc_app Specifies the application to install, which is mc.
mc_os Defines the operating system type to get the right binaries.
mc_architecture_map Defines the system architecture for correct binaries.
mc_dl_url URL to download the mc binary from.
mc_bin_path Path to store the mc binary, defaults to /usr/local/bin/mc.
mc_file_owner Owner of the mc binary file.
mc_file_group Group of the mc binary file.
mc_file_mode Permissions for the mc binary file.

Dependencies

No dependencies.

Example Playbook

To use the role for the default action (installing mc) in Ansible playbooks:

- hosts: servers
  roles:
    - darkwizard242.mc

To customize permissions for the mc binary file:

- hosts: servers
  roles:
    - darkwizard242.mc
  vars:
    mc_bin_permission_mode: '0700'

To change the location where the mc binary will be installed:

- hosts: servers
  roles:
    - darkwizard242.mc
  vars:
    mc_bin_path: /bin/

License

MIT

Author Information

This role was created by Ali Muhammad.

Informazioni sul progetto

Setups 'mc'. 'mc' is MinIO client that supports interacting with filesystems and Amazon S3 compatible cloud storage service.

Installa
ansible-galaxy install darkwizard242.mc
Licenza
mit
Download
4.5k
Proprietario
Senior DevOps/CloudOps Engineer. Dedicated to Automating everything I come across. Love to work on and learn new technologies/tools everyday!