refactor to use roles
This commit is contained in:
22
kubernetes.yml
Normal file
22
kubernetes.yml
Normal 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
|
||||
Reference in New Issue
Block a user