Commit ca868a08 authored by Ioannis Tsafaras's avatar Ioannis Tsafaras

Parallel execution of common tasks

parent 69bc52cd
---
- name: Create users for each application.
include: users.yml
when: "'slaves' in group_names"
- name: Include common tasks.
include: common-1.yml
......
......@@ -5,8 +5,7 @@
tags:
- master
- name: Include tasks for slaves.
include: slaves.yml
when: "'slaves' in group_names"
- name: Include tasks for all nodes.
include: all.yml
tags:
- slaves
- all
......@@ -2,9 +2,6 @@
- name: Create users for each application.
include: users.yml
- name: Include common tasks.
include: common-1.yml
# - name: Generate ssh key for root.
# shell: cat /dev/zero | ssh-keygen -q -N ""
# args:
......@@ -37,6 +34,3 @@
- name: Set up ssh config for flink user.
template: src=ssh-config.j2 dest=/home/flink/.ssh/config owner=flink group=lambda mode=600
- name: Include more common tasks.
include: common-2.yml
......@@ -13,7 +13,7 @@ if __name__ == "__main__":
parser.add_argument('--name', type=str, dest='name', default="to mikro debian sto livadi")
parser.add_argument('--slaves', type=int, dest='slaves', default=3)
parser.add_argument('--slaves', type=int, dest='slaves', default=2)
parser.add_argument('--vcpus_master', type=int, dest='vcpus_master', default=4)
parser.add_argument('--vcpus_slave', type=int, dest='vcpus_slave', default=4)
parser.add_argument('--ram_master', type=int, dest='ram_master', default=4096) # in MB
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment