mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2025-07-01 15:38:33 +02:00
This commit is contained in:
@ -3,4 +3,3 @@
|
|||||||
block:
|
block:
|
||||||
- name: Gather facts
|
- name: Gather facts
|
||||||
ansible.builtin.setup:
|
ansible.builtin.setup:
|
||||||
ignore_errors: true
|
|
||||||
|
@ -3,15 +3,12 @@
|
|||||||
block:
|
block:
|
||||||
- name: Get keys
|
- name: Get keys
|
||||||
ansible.builtin.command: |
|
ansible.builtin.command: |
|
||||||
curl -s https://packages.wazuh.com/key/GPG-KEY-WAZUH |\
|
curl -s https://packages.wazuh.com/key/GPG-KEY-WAZUH | gpg --no-default-keyring --keyring gnupg-ring:/usr/share/keyrings/wazuh.gpg --import && chmod 644 /usr/share/keyrings/wazuh.gpg
|
||||||
gpg --no-default-keyring --keyring gnupg-ring:/usr/share/keyrings/wazuh.gpg \
|
|
||||||
--import && chmod 644 /usr/share/keyrings/wazuh.gpg
|
|
||||||
changed_when: my_output.rc != 0
|
changed_when: my_output.rc != 0
|
||||||
|
|
||||||
- name: Add repo
|
- name: Add repo
|
||||||
ansible.builtin.command: |
|
ansible.builtin.command: |
|
||||||
echo "deb [signed-by=/usr/share/keyrings/wazuh.gpg] https://packages.wazuh.com/4.x/apt/ stable main" |\
|
echo "deb [signed-by=/usr/share/keyrings/wazuh.gpg] https://packages.wazuh.com/4.x/apt/ stable main" | tee -a /etc/apt/sources.list.d/wazuh.list
|
||||||
tee -a /etc/apt/sources.list.d/wazuh.list
|
|
||||||
changed_when: my_output.rc != 0
|
changed_when: my_output.rc != 0
|
||||||
|
|
||||||
- name: Update cache
|
- name: Update cache
|
||||||
|
Reference in New Issue
Block a user