kubespray/roles/kubernetes/tokens/tasks/main.yml

22 lines
379 B
YAML
Raw Normal View History

---
- name: Check tokens
import_tasks: check-tokens.yml
tags:
- k8s-secrets
- k8s-gen-tokens
- facts
- name: Make sure the tokens directory exits
file:
path: "{{ kube_token_dir }}"
state: directory
2022-12-22 07:45:25 +08:00
mode: 0644
group: "{{ kube_cert_group }}"
- name: Generate tokens
import_tasks: gen_tokens.yml
tags:
- k8s-secrets
- k8s-gen-tokens