giner.tfenv

Uruchom testy

Rola Ansible: tfenv

Instaluje tfenv i Terraform w katalogu domowym użytkownika lub w niestandardowym katalogu.

Wymagania

  • Ubuntu

Instalacja

Zainstaluj przez Ansible Galaxy:

ansible-galaxy collection install giner.tfenv

Lub dodaj tę rolę do swojego pliku requirements.yml:

roles:
  - name: giner.tfenv

Zmienne roli

Dostępne zmienne są wymienione poniżej wraz z wartościami domyślnymi (patrz defaults/main.yml):

Użytkownik, dla którego zostanie zainstalowane tfenv.

tfenv_user: "{{ ansible_user_id }}"

Katalog, w którym zostanie zainstalowane tfenv.

tfenv_dir: "{{ tfenv_user }}/.tfenv"

Katalog do utworzenia linków do binarnych plików tfenv i terraform.

tfenv_dir: "{{ tfenv_user }}/bin"

Zależności

Brak.

Przykładowy Playbook

- hosts: terraform
  roles:
  - giner.tfenv

Rozwój

Zainstaluj zależności testowe:

python3 -m pip install ansible -Ur requirements-molecule.txt

Uruchom wszystkie testy (wymaga zainstalowanego Dockera):

molecule test --all

Licencja

Apache 2.0

Autorzy

Ta rola została stworzona w 2021 roku przez Stanislawa Germana-Evtushenko

O projekcie

Install tfenv and Terraform into user's home or custom directory

Zainstaluj
ansible-galaxy install giner.tfenv
Licencja
apache-2.0
Pobrania
14.6k