summaryrefslogtreecommitdiff
path: root/spreadspace/k8s-emc.yml
blob: cd4e8e2ef8d938f41e3545401f628d3985bae9a1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
---
- name: setup cluster config
  hosts: k8s-emc
  gather_facts: no
  run_once: yes
  tasks:
  - name: create group for all kubernetes nodes
    with_items: "{{ groups['k8s-emc'] }}"
    add_host:
      name: "{{ item }}"
      inventory_dir: "{{ inventory_dir }}"
      group: _kubernetes_nodes_
    changed_when: False

  - name: create group for kubernetes master nodes
    with_items: "{{ groups['k8s-emc-master'] }}"
    add_host:
      name: "{{ item }}"
      inventory_dir: "{{ inventory_dir }}"
      group: _kubernetes_masters_
    changed_when: False

- import_playbook: ../common/kubernetes.yml