infothrill.hd_idle
Ansible Role: hd_idle
This role installs hd-idle from its source code. The program helps to turn off hard drives after a certain period of inactivity, which can save energy and possibly prolong the life of the hard drive.
Requirements
Works on systems that support /proc/diskstats, specifically Debian.
Role Variables
Here are the configuration options you can set, along with their default values (see defaults/main.yml):
hd_idle_version: 1.05
- The version of hd-idle you want to install. If you change this, you also need to update
hd_idle_checksum
.
- The version of hd-idle you want to install. If you change this, you also need to update
hd_idle_checksum: sha256:4efefe79d145b50e055582730d9d685e485da3df3dad90fef030036d52aa3a0c
- This checksum helps verify the downloaded code's integrity and allows for downloads even without HTTPS certificate verification.
hd_idle_compile_dir: /tmp/hd_idle
- The directory used for compiling the source code.
Dependencies
No dependencies are required.
Example Playbook
- hosts: raspberrypis
roles:
- { role: infothrill.hd_idle }
Changelog
2.1.0
- Updated code to meet modern standards and fixed minor security issues (file permissions).
- Removed support for Ansible versions older than 5.
- Removed support for Python versions older than 3.8.
- Transitioned to GitHub Actions for continuous integration.
2.0.2
- Removed support for Ansible versions older than 2.9.
- Upgraded molecule to version 3.0.x.
- Added support for Ansible 2.10, 3.0.
- Added support for Python versions 3.7 and later.
2.0.1
- Increased download timeout to 60 seconds.
- Set ownership of unpacked source code to
root
.
2.0.0
- Dropped support for Ansible 2.4.
- Added support for Ansible 2.8.
- Changed testing toolchain to Python 3.6.
- Upgraded molecule and ansible-lint.
1.4.1
- Added testing for Ansible 2.8.
- Included experimental testing for Debian Buster.
1.4.0
- Added basic linting and syntax tests using Travis.
- Renamed the role from
hd-idle
tohd_idle
.
1.3
- Added testing for Ansible 2.6.
1.2.0
- Added tests for Ansible 2.4 and 2.5.
- Removed support for Ansible 2.1.
- Upgraded molecule to version 2.15.
- Added tests for Debian Stretch 9.4.
1.1.0
- Added testing for Ansible 2.3.
- Fixed deprecation warnings in Ansible 2.3.
1.0.0
- Initial release.
License
MIT License
Author Information
This role was created by Paul Kremer in 2017.