Skip to content

Instantly share code, notes, and snippets.

@alicek106
Created March 22, 2019 05:59
Show Gist options
  • Save alicek106/d737a37c2aaae5b9156c041339df039b to your computer and use it in GitHub Desktop.
Save alicek106/d737a37c2aaae5b9156c041339df039b to your computer and use it in GitHub Desktop.
Ansible dynamic discovery in Inventory file - It groups to user defined group!
#######################
## 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