Skip to content

Instantly share code, notes, and snippets.

@flrichar
Last active July 22, 2021 18:34
Show Gist options
  • Select an option

  • Save flrichar/f0843f60d588138bd2eec968f9bccc78 to your computer and use it in GitHub Desktop.

Select an option

Save flrichar/f0843f60d588138bd2eec968f9bccc78 to your computer and use it in GitHub Desktop.
ansible terraform installer
---
## It's so nice when the kids get along
- hosts: localhost
become: yes
vars_files:
- vars/become.yaml
vars:
tfversion: 1.0.3 // look over there, elvis
tasks:
- name: install terraform {{ tfversion }}
unarchive:
src: https://releases.hashicorp.com/terraform/{{ tfversion}}/terraform_{{ tfversion }}_linux_amd64.zip
dest: /usr/local/bin
remote_src: yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment