fix packages
This commit is contained in:
@@ -34,15 +34,9 @@
|
||||
when:
|
||||
- ansible_os_family == 'Debian'
|
||||
block:
|
||||
- name: Create temporary directory
|
||||
ansible.builtin.tempfile:
|
||||
state: directory
|
||||
prefix: hashicorp.
|
||||
register: d_hashicorp_tmp
|
||||
|
||||
- name: Get hashicorp archive gpg key
|
||||
ansible.builtin.get_url:
|
||||
dest: "{{ d_hashicorp_tmp.path }}/gpg"
|
||||
dest: "{{ d_tempdir.path }}/hashicorp_gpg"
|
||||
url: https://apt.releases.hashicorp.com/gpg
|
||||
mode: '0644'
|
||||
|
||||
@@ -55,7 +49,7 @@
|
||||
- --dearmor
|
||||
- -o
|
||||
- /usr/share/keyrings/hashicorp-archive-keyring.gpg
|
||||
- "{{ d_hashicorp_tmp.path }}/gpg"
|
||||
- "{{ d_tempdir.path }}/hashicorp_gpg"
|
||||
|
||||
- name: Enable hasicorp repo for debian
|
||||
ansible.builtin.apt_repository:
|
||||
@@ -66,8 +60,5 @@
|
||||
- name: MacOS specific configuration
|
||||
when:
|
||||
- ansible_distribution == 'MacOSX'
|
||||
block:
|
||||
- name: Enable hashicorp homebrew tap
|
||||
when: ansible_os_family == 'Darwin'
|
||||
ansible.builtin.set_fact:
|
||||
brewtaps: "{{ brewtaps + ['hashicorp/tap'] }}"
|
||||
ansible.builtin.set_fact:
|
||||
brewtaps: "{{ brewtaps + ['hashicorp/tap'] }}"
|
||||
|
||||
Reference in New Issue
Block a user