darkwizard242.duf
Ansible Role: duf
This role installs duf by default on Debian/Ubuntu and EL (Enterprise Linux) systems. It’s a better option than the 'df' command.
Requirements
No special requirements.
Role Variables
Here are the variables you can use, found in defaults/main.yml
:
Variables List:
duf_app: duf
duf_desired_state: present
duf_version: 0.8.1
duf_os: "linux"
duf_architecture_map:
amd64: amd64
arm: arm64
x86_64: amd64
armv6l: armv6
armv7l: armv7
aarch64: arm64
32-bit: "386"
64-bit: amd64
# For Debian/Ubuntu
duf_debian_url: "https://github.com/muesli/{{ duf_app }}/releases/download/v{{ duf_version }}/{{ duf_app }}_{{ duf_version }}_{{ duf_os }}_{{ duf_architecture_map[ansible_architecture] }}.deb"
# For EL Family
duf_el_url: "https://github.com/muesli/{{ duf_app }}/releases/download/v{{ duf_version }}/{{ duf_app }}_{{ duf_version }}_{{ duf_os }}_{{ duf_architecture_map[ansible_architecture] }}.rpm"
Variables Table:
Variable | Description |
---|---|
duf_app | Specifies the application to install, which is duf. |
duf_desired_state | Determines if the package should be installed (present or latest ) or uninstalled (absent ). Default is present . |
duf_version | Indicates the version of the application to install. Default is 0.8.1. |
duf_os | Represents the operating system type (defaults to linux). |
duf_architecture_map | Maps the architecture type for obtaining the right binaries based on system architecture. |
duf_debian_url | URL to download the 'deb' package for Debian/Ubuntu systems. |
duf_el_url | URL to download the 'rpm' package for EL systems. |
Dependencies
None.
Example Playbook
To install duf by default in your Ansible playbooks:
- hosts: servers
roles:
- darkwizard242.duf
To specify a different version of duf in your playbooks:
- hosts: servers
roles:
- darkwizard242.duf
vars:
duf_version: 0.6.1
To install duf with a different architecture (like arm64):
- hosts: servers
roles:
- darkwizard242.duf
vars:
duf_arch: "arm64"
License
Author Information
This role was created by Ali Muhammad.
Informazioni sul progetto
Installs/Uninstalls 'duf'. A better df alternative.
Installa
ansible-galaxy install darkwizard242.duf
Licenza
mit
Download
3.7k
Proprietario
Senior DevOps/CloudOps Engineer.
Dedicated to Automating everything I come across.
Love to work on and learn new technologies/tools everyday!