Commit fe47d239 authored by Georgios Ouzounis's avatar Georgios Ouzounis
Browse files

LAM-33 Moved tasks common-1, common-2 from main to master task in common role.

parent 731c4ecf
---
- name: Include common tasks.
include: common-1.yml
tags:
- common-1
- name: Include tasks for master.
include: master.yml
when: "'master' in group_names"
tags:
- master
- name: Include more common tasks.
include: common-2.yml
- name: Include tasks for slaves.
include: slaves.yml
when: "'slaves' in group_names"
tags:
- common-2
- slaves
---
- name: Include common tasks.
include: common-1.yml
- name: Fetch id_rsa.pub file from master.
fetch: src=/root/.ssh/id_rsa.pub dest=/tmp/fetched/ flat=yes
- name: Set up ssh config.
template: src=ssh-config.j2 dest=/root/.ssh/config owner=root group=root mode=664
- name: Include more common tasks.
include: common-2.yml
---
- name: Include common tasks.
include: common-1.yml
tags:
- slave
- name: Include more common tasks.
include: common-2.yml
tags:
- slave
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