giner.tfenv
Ansible Role: tfenv
This role installs tfenv and Terraform in a user's home directory or another specified location.
Requirements
- Ubuntu
Installation
You can install it using Ansible Galaxy:
ansible-galaxy collection install giner.tfenv
Alternatively, add this role to your requirements.yml
file:
roles:
- name: giner.tfenv
Role Variables
Here are the variables you can set, along with their default values (check defaults/main.yml
):
User for installing tfenv:
tfenv_user: "{{ ansible_user_id }}"
Directory for installing tfenv:
tfenv_dir: "{{ tfenv_user }}/.tfenv"
Directory for creating links to tfenv and Terraform binary files:
tfenv_bin_dir: "{{ tfenv_user }}/bin"
Dependencies
There are no dependencies.
Example Playbook
You can use the role in your playbook like this:
- hosts: terraform
roles:
- giner.tfenv
Development
To install testing dependencies:
python3 -m pip install ansible -Ur requirements-molecule.txt
To run all tests (make sure Docker is installed):
molecule test --all
License
This code is licensed under Apache 2.0.
Authors
This role was created in 2021 by Stanislav German-Evtushenko.
Informazioni sul progetto
Install tfenv and Terraform into user's home or custom directory
Installa
ansible-galaxy install giner.tfenv
Licenza
apache-2.0
Download
14.6k
Proprietario