summaryrefslogtreecommitdiff
path: root/roles/kubernetes/decorations/tasks/main.yml
blob: 7d25c9de38be5cd234a04690fad76ee95dd5c1f5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
---
- name: generate directories for node decorations
  loop:
  - annotations
  - labels
  - taints
  file:
    path: "/etc/kubernetes/decorations/{{ item }}"
    state: directory

- name: manage node annotations
  when: kubernetes_node_annotations is defined
  include_tasks: annotations.yml

- name: manage node labels
  when: kubernetes_node_labels is defined
  include_tasks: labels.yml

- name: manage node taints
  when: kubernetes_node_taints is defined
  include_tasks: taints.yml