Skip to content
This repository was archived by the owner on Jun 11, 2025. It is now read-only.

Execute reset.yml playbooks in parallel #26

@binarylogic

Description

@binarylogic

Before every test run we ensure all subject are stopped and that their data directories are cleaned. This reset process takes a couple of minutes, which isn't long, but could be avoided if we ran the cleanup steps in parallel. Ansible does not make this easy with the way we load in roles:

  become: true
  roles:
    - role: filebeat
      action: stop
    - role: fluentbit
      action: reset
    - role: fluentd
      action: stop
    - role: logstash
      action: reset
    - role: splunk_heavy_forwarder
      action: reset
    - role: splunk_universal_forwarder
      action: reset
    - role: vector
      action: reset

- hosts: '{{ test_namespace }}:&tag_TestRole_consumer'
  become: true
  roles:
    - role: logstash
      action: reset
    - role: tcp_test_server
      action: stop

Therefore we might be better switching these to include_role steps, which I believe allows for more flexibility around parallelization of steps.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions