refactor to use roles

This commit is contained in:
2020-04-02 14:57:18 +02:00
parent 264d837298
commit 2ac6f96f8e
9 changed files with 153 additions and 307 deletions

22
kubernetes.yml Normal file
View File

@@ -0,0 +1,22 @@
---
- name: Apply common configuration to all nodes
hosts: all
become: true
roles:
- common
- name: Configure and deploy Kubernetes master
hosts: master
become: true
roles:
- master
- name: Join workers to Kubernetes cluster
hosts: worker
become: true
roles:
- worker