monolithprojects.hashicorp_tools
Hashicorp Tools - Ansible Role
This Ansible Role helps you install, upgrade, or uninstall Hashicorp tools. Instead of using standard deb or rpm packages, it directly downloads the tools from Hashicorp's releases page.
List of supported tools:
Requirements
- The role will automatically install
unzip
if it’s not already on your system because the binaries come in Zip files. - If you are installing
Vagrant
, it will also installfuse
orlibfuse2
, depending on your system's packaging tool.
- Weekly tested on these systems, but it should work on older versions too:
- CentOS 8
- Debian 10
- Fedora 33
- Ubuntu 20
Role Variables
Below are the default variables from defaults/main.yml
:
---
# URL for Hashicorp downloads
hashicorp_url: https://releases.hashicorp.com
# Hashicorp tools and their versions.
# You can set these values to be: present or absent
hashicorp_tools:
[]
# - name: boundary
# version: 0.1.0
# state: present
# - name: consul
# version: 1.8.4
# state: present
# - name: nomad
# version: 0.12.5
# state: present
# - name: packer
# version: 1.6.4
# state: present
# - name: terraform
# version: 0.13.4
# state: absent
# - name: vagrant
# version: 2.2.10
# state: present
# - name: vault
# version: 1.5.4
# state: absent
# - name: waypoint
# version: 0.1.1
# state: present
# Directory for installation
install_dir: /usr/local/bin/
Example Playbook
This example shows how to use the Ansible role to uninstall Hashicorp Boundary and install (or upgrade) other Hashicorp tools to specific versions.
---
- name: Hashicorp tools
hosts: all
vars:
hashicorp_tools:
- name: boundary
state: absent
- name: consul
version: 1.8.4
state: present
- name: nomad
version: 0.12.5
state: present
- name: packer
version: 1.6.4
state: present
- name: terraform
version: 0.13.4
state: absent
- name: vagrant
version: 2.2.10
state: present
- name: vault
version: 1.5.4
state: absent
- name: waypoint
version: 0.1.1
state: present
roles:
name: monolithprojects.hashicorp_tools
Contribution
Feel free to contribute! :)
License
MIT
Author Information
Created in 2020 by Michal Muransky
Informazioni sul progetto
Ansible Role used for Hashicorp tools installation/upgrade/uninstallation.
Installa
ansible-galaxy install monolithprojects.hashicorp_tools
Licenza
mit
Download
56.2k
Proprietario
Full-time Cloud Engineer, part-time adventurer