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"