Skip to content
Snippets Groups Projects
Commit d7679637 authored by Emmanuel Cohen's avatar Emmanuel Cohen
Browse files

Use 1 playbook for benchmark installation

parent 52f40a28
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env ansible-playbook
---
- name: DEPLOY BENCHMARK SERVER
hosts:
- bench_server
tags:
- bench_server
roles:
- bench-server
...
#!/usr/bin/env ansible-playbook
---
- name: DEPLOY BENCHMARK WORKERS
hosts:
- bench_worker
tags:
- bench_worker
roles:
- bench-worker
...
#!/usr/bin/env ansible-playbook
---
- name: DEPLOY BENCHMARK SERVER
hosts: bench_server
pre_tasks:
- name: "Fail is benchmark server is not unique"
fail:
msg: "Benchmark server must be unique"
when: groups['bench_server'] | length > 1
tags: bench_server
roles:
- bench-server
- name: DEPLOY BENCHMARK WORKERS
hosts: bench_worker
tags: bench_worker
roles:
- bench-worker
...
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment