Created
March 22, 2019 05:59
-
-
Save alicek106/d737a37c2aaae5b9156c041339df039b to your computer and use it in GitHub Desktop.
Ansible dynamic discovery in Inventory file - It groups to user defined group!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
####################### | |
## EC2 Dynamic Inventory Groups | |
[tag_ansibleNodeType_etcd] | |
[tag_ansibleNodeType_worker] | |
[tag_ansibleNodeType_controller] | |
####################### | |
#### Kubespray Groups | |
[etcd:children] | |
tag_ansibleNodeType_controller | |
[kube-node:children] | |
tag_ansibleNodeType_worker | |
[kube-master:children] | |
tag_ansibleNodeType_controller | |
[k8s-cluster:children] | |
kube-master | |
kube-node |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment