summaryrefslogtreecommitdiff
path: root/dan/k8s-emc.yml
blob: 600ab2a17a2bdec6f21f964aff94f7356af3a3e4 (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
    loop: "{{ groups['k8s-emc'] }}"
    add_host:
      name: "{{ item }}"
      inventory_dir: "{{ inventory_dir }}"
      group: _kubernetes_nodes_
    changed_when: False

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

- import_playbook: ../common/kubernetes.yml