summaryrefslogtreecommitdiff
path: root/spreadspace/k8s-emc.yml
blob: a1b256310941b23fc87eee9b60e2eecaf8d78cfa (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