From 80189d11d5360241251347d79987c6500f17b02c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Acu=C3=B1a?= Date: Wed, 30 Mar 2022 14:47:12 -0300 Subject: [PATCH] Become yes to filebeat certificates copy --- .github/workflows/main.yml | 2 +- roles/wazuh/ansible-filebeat-oss/tasks/security_actions.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index eede5944..48c8bf6a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -30,7 +30,7 @@ jobs: run: poetry install - name: Run Molecule tests. - run: poetry run molecule test --sudo -s default + run: poetry run molecule test -s default env: PY_COLORS: '1' ANSIBLE_FORCE_COLOR: '1' diff --git a/roles/wazuh/ansible-filebeat-oss/tasks/security_actions.yml b/roles/wazuh/ansible-filebeat-oss/tasks/security_actions.yml index c9b90070..35fec5cb 100644 --- a/roles/wazuh/ansible-filebeat-oss/tasks/security_actions.yml +++ b/roles/wazuh/ansible-filebeat-oss/tasks/security_actions.yml @@ -15,6 +15,7 @@ owner: root group: root mode: 0644 + become: yes with_items: - "{{ filebeat_node_name }}-key.pem" - "{{ filebeat_node_name }}.pem"