diff --git a/tasks/main.yml b/tasks/main.yml index b3e6532..c9cfdde 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,7 +1,9 @@ --- - name: "Opensearch | Add repository key" - ansible.builtin.apt_key: + ansible.builtin.get_url: url: "{{ opensearch_apt_key_url }}" + dest: /etc/apt/trusted.gpg.d/opensearch.asc + mode: "0644" - name: "Opensearch | Add repository" ansible.builtin.apt_repository: @@ -58,4 +60,3 @@ src: update-opensearch-plugins.j2 dest: "/usr/local/bin/{{ opensearch_plugin_update_script }}" mode: "0755" -