Installs tfenv and Terraform into a user's home or a custom directory
Install via Ansible Galaxy:
ansible-galaxy collection install giner.tfenv
Or include this role in your requirements.yml
file:
roles:
- name: giner.tfenv
Available variables are listed below, along with default values (see defaults/main.yml
):
User to install tfenv.
tfenv_user: "{{ ansible_user_id }}"
Directory to install tfenv.
tfenv_dir: "{{ tfenv_user }}/.tfenv"
Directory to create links to tfenv and terraform binaries.
tfenv_dir: "{{ tfenv_user }}/bin"
None.
- hosts: terraform
roles:
- giner.tfenv
Install test dependencies:
python3 -m pip install ansible -Ur requirements-molecule.txt
Run all tests (requires docker to be installed):
molecule test --all
Apache 2.0
This role was created in 2021 by Stanislav German-Evtushenko