-
Notifications
You must be signed in to change notification settings - Fork 0
/
local-deps.yml
32 lines (32 loc) · 946 Bytes
/
local-deps.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
- name: Ensure local dependencies are installed
hosts:
- localhost
tasks:
- name: macOS dependencies
become: false
block:
- community.general.homebrew:
name: terraform
state: present
update_homebrew: false
when: ansible_os_family == 'Darwin'
- name: Debian dependencies
block:
- name: Add Hashicorp GPG key
apt_key:
url: https://apt.releases.hashicorp.com/gpg
state: present
- name: Add Hashicorp APT repository
apt_repository:
repo: deb [arch=amd64] https://apt.releases.hashicorp.com {{ ansible_distribution_release }} main
state: present
- name: Install Terraform
apt:
name: terraform
state: present
when: ansible_os_family == 'Debian'
- name: Python dependencies
pip:
name:
- jmespath
state: present