summaryrefslogtreecommitdiff
path: root/_graveyard_/spreadspace/k8s-lwl.yml
blob: 1aa09daa42f5ae2143cfa2dfad99113c94c0ddc7 (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
24
25
26
27
28
29
30
31
32
33
34
---
- name: Basic Node Setup
  hosts: k8s-lwl
  roles:
  - role: apt-repo/base
  - role: core/base
  - role: core/sshd/base
  - role: core/zsh

- import_playbook: ../common/kubernetes-cluster-layout.yml
  vars:
    kubernetes_cluster_layout:
      nodes_group: k8s-lwl
      masters:
      - lw-master

### hack hack hack...
- name: cook kubernetes secrets
  hosts: _kubernetes_nodes_
  gather_facts: no
  tasks:
  - set_fact:
      kubernetes_secrets: "{{ kubernetes_secrets }}"
  - when: external_ip is defined
    set_fact:
      external_ip: "{{ external_ip }}"

- import_playbook: ../common/kubernetes-cluster.yml
- import_playbook: ../common/kubernetes-cluster-cleanup.yml

- name: install addons
  hosts: _kubernetes_primary_master_
  roles:
  - role: kubernetes/addons/metrics-server