added key ID for download only when required
This commit is contained in:
parent
6c4740a401
commit
c3cc763a5e
@ -30,9 +30,9 @@
|
|||||||
|
|
||||||
- name: Debian/Ubuntu | Add Elasticsearch GPG key.
|
- name: Debian/Ubuntu | Add Elasticsearch GPG key.
|
||||||
apt_key:
|
apt_key:
|
||||||
keyserver: "{{ elasticrepo_gpg_keyserver }}"
|
url: "https://artifacts.elastic.co/GPG-KEY-elasticsearch"
|
||||||
id: 46095ACC8548582C1A2699A9D27D666CD88E42B4
|
id: 46095ACC8548582C1A2699A9D27D666CD88E42B4
|
||||||
|
state: present
|
||||||
|
|
||||||
- name: Debian/Ubuntu | Install Elastic repo
|
- name: Debian/Ubuntu | Install Elastic repo
|
||||||
apt_repository:
|
apt_repository:
|
||||||
|
|||||||
@ -8,10 +8,11 @@
|
|||||||
register: kibana_installing_ca_package
|
register: kibana_installing_ca_package
|
||||||
until: kibana_installing_ca_package is succeeded
|
until: kibana_installing_ca_package is succeeded
|
||||||
|
|
||||||
- name: Debian/Ubuntu | Add Elasticsearch GPG key
|
- name: Debian/Ubuntu | Add Elasticsearch GPG key.
|
||||||
apt_key:
|
apt_key:
|
||||||
keyserver: "{{ elasticrepo_gpg_keyserver }}"
|
url: "https://artifacts.elastic.co/GPG-KEY-elasticsearch"
|
||||||
id: 46095ACC8548582C1A2699A9D27D666CD88E42B4
|
id: 46095ACC8548582C1A2699A9D27D666CD88E42B4
|
||||||
|
state: present
|
||||||
|
|
||||||
- name: Debian/Ubuntu | Install Elastic repo
|
- name: Debian/Ubuntu | Install Elastic repo
|
||||||
apt_repository:
|
apt_repository:
|
||||||
|
|||||||
@ -8,10 +8,11 @@
|
|||||||
register: filebeat_ca_packages_install
|
register: filebeat_ca_packages_install
|
||||||
until: filebeat_ca_packages_install is succeeded
|
until: filebeat_ca_packages_install is succeeded
|
||||||
|
|
||||||
- name: Debian/Ubuntu | Add Elasticsearch apt key.
|
- name: Debian/Ubuntu | Add Elasticsearch GPG key.
|
||||||
apt_key:
|
apt_key:
|
||||||
keyserver: "{{ elasticrepo_gpg_keyserver }}"
|
url: "https://artifacts.elastic.co/GPG-KEY-elasticsearch"
|
||||||
id: 46095ACC8548582C1A2699A9D27D666CD88E42B4
|
id: 46095ACC8548582C1A2699A9D27D666CD88E42B4
|
||||||
|
state: present
|
||||||
|
|
||||||
- name: Debian/Ubuntu | Add Filebeat repository.
|
- name: Debian/Ubuntu | Add Filebeat repository.
|
||||||
apt_repository:
|
apt_repository:
|
||||||
|
|||||||
@ -25,6 +25,7 @@
|
|||||||
- name: Debian/Ubuntu | Installing Wazuh repository key
|
- name: Debian/Ubuntu | Installing Wazuh repository key
|
||||||
apt_key:
|
apt_key:
|
||||||
url: "{{ wazuh_agent_config.repo.gpg }}"
|
url: "{{ wazuh_agent_config.repo.gpg }}"
|
||||||
|
id: 0DCFCA5547B19D2A6099506096B3EE5F29111145
|
||||||
when:
|
when:
|
||||||
- not (ansible_distribution == "Ubuntu" and ansible_distribution_major_version | int == 14)
|
- not (ansible_distribution == "Ubuntu" and ansible_distribution_major_version | int == 14)
|
||||||
- not wazuh_agent_sources_installation.enabled
|
- not wazuh_agent_sources_installation.enabled
|
||||||
|
|||||||
@ -28,6 +28,7 @@
|
|||||||
- name: Debian/Ubuntu | Installing Wazuh repository key
|
- name: Debian/Ubuntu | Installing Wazuh repository key
|
||||||
apt_key:
|
apt_key:
|
||||||
url: "{{ wazuh_manager_config.repo.gpg }}"
|
url: "{{ wazuh_manager_config.repo.gpg }}"
|
||||||
|
id: 0DCFCA5547B19D2A6099506096B3EE5F29111145
|
||||||
when:
|
when:
|
||||||
- not (ansible_distribution == "Ubuntu" and ansible_distribution_major_version | int == 14)
|
- not (ansible_distribution == "Ubuntu" and ansible_distribution_major_version | int == 14)
|
||||||
- not wazuh_manager_sources_installation.enabled or not wazuh_api_sources_installation.enabled
|
- not wazuh_manager_sources_installation.enabled or not wazuh_api_sources_installation.enabled
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user