nicholaswilde.flux2
Ansible Role: Flux
This role sets up the Flux software on any supported host.
Requirements
None
Role Variables
Here are the available variables with their default settings (check defaults/main.yaml):
app_ver
: '0.5.8'
This controls which version of Flux to install. You can see available flux2 versions to upgrade or downgrade by changingapp_ver
.app_platform
: linux
This specifies the platform for the installation.app_arch
: amd64
This specifies the architecture for the installation.app_install_dir
: /usr/local/bin
This is where the Flux binary will be installed.
Dependencies
To install dependencies, run:
$ ansible-galaxy role install -r requirements.yaml
Example Playbook
You can include this role in your Ansible playbook like this:
- hosts: all
roles:
- role: nicholaswilde.flux2
Testing
To test using molecule, clone the repository like this:
# Checkout
$ git clone https://github.com/nicholaswilde/ansible-role-flux.git nicholaswilde.flux2
$ cd nicholaswilde.flux2
# Install Requirements
$ ansible-galaxy role install -r requirements.yaml
# Run Tests
$ molecule test
# Converge
$ molecule converge
Pre-commit Hook
If you want to automatically check your code with a pre-commit hook, follow these steps:
- Install the pre-commit binary.
- Add a .pre-commit-config.yaml file to your project.
- Run:
$ pre-commit install
$ pre-commit install-hooks
Inspiration
This project was inspired by work from Andrew Rothstein and Jeff Geerling.
License
This project is under the Apache 2.0 License.
Author Information
Nicholas Wilde started this project in 2020. You can find him here.
Install Flux role
ansible-galaxy install nicholaswilde.flux2