flux2
Ansible Role: Flux
This role installs the Flux binary on any supported host.
Requirements
N/A
Role Variables
Available variables are listed below, along with default values (see defaults/main.yaml):
app_ver: '0.5.8'
app_platform: linux
app_arch: amd64
Controls for the version of Helm to be installed. See available flux2 releases. You can upgrade or downgrade versions by changing the app_ver
.
app_install_dir: /usr/local/bin
The location where the flux2 binary will be installed.
Dependencies
Install dependencies
$ ansible-galaxy role install -r requirements.yaml
Example Playbook
- hosts: all
roles:
- role: nicholaswilde.flux2
Testing
If you want to use moleculte to test, be sure to check out the repo in a folder titled nicholaswilde.flux2
# Checkout
$ git clone https://github.com/nicholaswilde/ansible-role-flux.git nicholaswilde.flux2
$ cd nicholaswilde.flux2
# Requirements
$ ansible-galaxy role install -r requirements.yaml
# 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, and add a .pre-commit-config.yaml file to your project. Then run:
$ pre-commit install
$ pre-commit install-hooks
Inspiration
Inspiration for this repository has been taken from Andrew Rothstein and Jeff Geerling.
License
Author Information
This project was started in 2020 by Nicholas Wilde.
ansible-galaxy install nicholaswilde/ansible-role-flux