Don't use deprecated way to add apt key

This commit is contained in:
phil 2024-01-21 10:14:34 +01:00
parent 709ca9ae88
commit 24e959e72c

View file

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