Skip to content

Commit 3404f94

Browse files
committed
install_terraform: Break the redhat install-deps symlink
TASK [install_terraform : Install Terraform Dependencies] ********************** [WARNING]: Updating cache and auto-installing missing dependency: python3-apt fatal: [localhost]: FAILED! => { "changed": false, "cmd": "update", "rc": 2 } MSG: [Errno 2] No such file or directory: b'update' install-deps/redhat/main.yml was a symlink to install-deps/debian/main.yml . When commit 42514aa ("install_terraform: fix missing deps") added the "apt" step to install-deps/debian/main.yml, it also appeared in the redhat/main.yml script unintentionally. Fixes: 42514aa ("install_terraform: fix missing deps") Signed-off-by: Chuck Lever <[email protected]>
1 parent c38aa6c commit 3404f94

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

playbooks/roles/install_terraform/tasks/install-deps/redhat/main.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
- name: Verify Terraform installation
3+
command: "which terraform"
4+
register: terraform_present
5+
changed_when: terraform_present.rc == 1
6+
failed_when: terraform_present.rc != 0 and terraform_present.rc != 1
7+
tags: [ 'terraform', 'verify' ]
8+
9+
- name: Download Terraform from the latest release and install locally
10+
become: yes
11+
become_method: sudo
12+
unarchive:
13+
src: https://releases.hashicorp.com/terraform/{{ terraform_version }}/terraform_{{ terraform_version }}_linux_amd64.zip
14+
dest: /usr/local/bin
15+
remote_src: yes
16+
when:
17+
- force_install_if_present|bool or terraform_present.rc != 0

0 commit comments

Comments
 (0)