https://github.com/nicholaswilde/ansible-role-installer
This role installs the installer binary on any supported host.
https://github.com/nicholaswilde/ansible-role-installer
binary http installer server
Last synced: over 1 year ago
JSON representation
This role installs the installer binary on any supported host.
- Host: GitHub
- URL: https://github.com/nicholaswilde/ansible-role-installer
- Owner: nicholaswilde
- License: apache-2.0
- Created: 2020-12-25T06:31:30.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-12-27T01:41:27.000Z (over 5 years ago)
- Last Synced: 2025-01-22T22:29:53.357Z (over 1 year ago)
- Topics: binary, http, installer, server
- Language: Shell
- Homepage: https://galaxy.ansible.com/nicholaswilde/installer
- Size: 19.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Ansible Role: installer
[](https://github.com/nicholaswilde/ansible-role-installer/actions?query=workflow%3ACI)
[](https://github.com/pre-commit/pre-commit)
[](https://github.com/nicholaswilde/ansible-role-installer/blob/main/LICENSE)
This role installs the [installer](https://github.com/jpillora/installer/) binary on any supported host.
## Requirements
N/A
## Role Variables
Available variables are listed below, along with default values (see [defaults/main.yaml](./defaults/main.yaml)):
app_ver: '0.2.9'
app_platform: linux
app_arch: amd64
Controls for the version of Helm to be installed. See [available installer releases](https://github.com/jpillora/installer/releases/). You can upgrade or downgrade versions by changing the `app_ver`.
app_install_dir: /usr/local/bin
The location where the installer binary will be installed.
## Dependencies
- [andrewrothstein.unarchive-deps](https://galaxy.ansible.com/andrewrothstein/unarchive-deps)
Install dependencies
$ ansible-galaxy role install -r requirements.yaml
## Example Playbook
- hosts: all
roles:
- role: nicholaswilde.installer
## Testing
If you want to use [moleculte](https://molecule.readthedocs.io/en/latest/installation.html) to test, be sure to check out the repo in a folder titled `nicholaswilde.installer`
```
# Checkout
$ git clone https://github.com/nicholaswilde/ansible-role-installer.git nicholaswilde.installer
$ cd nicholaswilde.installer
# Test
$ molecule test
# Converge
$ molecule converge
```
## Pre-commit hook
If you want to automatically lint the files with a pre-commit hook, make sure you
[install the pre-commit binary](https://pre-commit.com/#install), and add a [.pre-commit-config.yaml file](./.pre-commit-config.yaml)
to your project. Then run:
```bash
$ pre-commit install
$ pre-commit install-hooks
```
## Inspiration
Inspiration for this repository has been taken from [Andrew Rothstein](https://github.com/andrewrothstein) and [Jeff Geerling](https://github.com/geerlingguy/).
## License
[Apache 2.0 License](./LICENSE)
## Author Information
This project was started in 2020 by [Nicholas Wilde](https://github.com/nicholaswilde/).