Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Execute reset.yml playbooks in parallel #26

Open
binarylogic opened this issue Mar 5, 2020 · 0 comments
Open

Execute reset.yml playbooks in parallel #26

binarylogic opened this issue Mar 5, 2020 · 0 comments

Comments

@binarylogic
Copy link
Contributor

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.

@binarylogic binarylogic changed the title Execut reset.yml playbook in parallel Execute reset.yml playbooks in parallel Mar 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant