Commit a7f9251a authored by Tobias Winchen's avatar Tobias Winchen
Browse files

Fix double inclusion of master controler

parent b8659a7a
---
- name: Create temporary data directory
tempfile:
state: directory
register: additional_build_files
check_mode: false
- name: Build master controller
tags:
- always
- never
- build
- build_master
block:
- name: Create temporary data directory
tempfile:
state: directory
register: additional_build_files
check_mode: false
- name: Copy ssh key
copy:
src: "{{ base_path }}/basic_configuration/data/id_rsa"
dest: "{{ additional_build_files.path }}/id_rsa"
mode: go-rwx
tags:
- always
- name: Copy ssh key
copy:
src: "{{ base_path }}/data/id_rsa"
dest: "{{ additional_build_files.path }}/id_rsa"
mode: go-rwx
- name: copy ansible.cfg
template:
src: ansible.cfg
dest: "{{ additional_build_files.path }}/ansible.cfg"
tags:
- always
- name: copy ansible.cfg
template:
src: ansible.cfg
dest: "{{ additional_build_files.path }}/ansible.cfg"
- name: Build container
include_role:
name: common
tasks_from: build_tasks.yml
vars:
image_name: edd_master_controller
container_name: MASTER_CONTROLLER
- name: Remove the temporary data directory
file:
path: "{{ additional_build_files.path }}"
state: absent
when: additional_build_files.path is defined
check_mode: false
- name: Build master controller container
include_role:
name: common
tasks_from: build_tasks.yml
vars:
image_name: edd_master_controller
container_name: MASTER_CONTROLLER
tags:
- always
- name: Remove the temporary data directory
file:
path: "{{ additional_build_files.path }}"
state: absent
when: additional_build_files.path is defined
check_mode: false
tags:
- always
- name: master controller container
include_role:
......
......@@ -5,13 +5,6 @@
- name: setup control server
hosts: interface
gather_facts: no
roles:
- edd_master_controller
#- name: use logspout to centralize logging
# hosts: all
# gather_facts: no
......
Supports Markdown
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