nioniosfr.hashicorp_app

Ansible Role: HashiCorp Application

This is an Ansible role designed to install HashiCorp applications on a Linux x86_64 system.

Requirements

This role works with Debian and RHEL systems based on the x86_64 architecture.

It needs to run on a remote machine that has an internet connection.

Supported HashiCorp products:

Role Variables

Required:

hashicorp_app_name: # Specify a valid HashiCorp product name. See: https://checkpoint.hashicorp.com/ and https://releases.hashicorp.com/

Default settings:

hashicorp_app_version: "latest" # Use the latest version or a specific release from: https://releases.hashicorp.com/{{hashicorp_app_name}}/

hashicorp_app_binary_dest: "/opt/{{ hashicorp_app_name }}" # Directory where the binary will be installed

hashicorp_app_cleanup_after: false # If true, it will delete all downloaded files

hashicorp_app_configure_system_path: true # Whether to add the install directory to the system `PATH`
hashicorp_app_system_path_prepend: false # Whether to add the directory at the beginning or the end of the `PATH`, if the previous option is true.

hashicorp_app_tmp_dir: # Temporary folder for storing the downloaded file

Dependencies

None

Example Playbook

    - hosts: localhost
      roles:
        - role: nioniosfr.hashicorp_app
          vars:
            hashicorp_app_name: "terraform" # Installs the latest version of Terraform

        - role: nioniosfr.hashicorp_app
          vars:
            hashicorp_app_name: "packer"
            hashicorp_app_version: "1.4.1" # Use a specific version
            hashicorp_app_tmp_dir: "/mnt/nfs_share/downloads" # Set a more permanent location for the downloaded file

        - role: nioniosfr.hashicorp_app
          vars:
            hashicorp_app_name: "consul"
            hashicorp_app_binary_dest: "/usr/local/bin" # Install in a common user directory
            hashicorp_app_configure_system_path: false # Do not change the system `PATH`
            hashicorp_app_tmp_dir: "/mnt/nfs_share/downloads" # Change the download location
            hashicorp_app_cleanup_after: true # Remove the downloaded file and its system profile if it was created in a previous run

License

MIT

Author Information

NioniosFr

Installa
ansible-galaxy install nioniosfr.hashicorp_app
Licenza
mit
Download
116
Proprietario
Principal Engineer