romach
4/19/2017 - 8:39 PM

Use variables in inventory files

Use variables in inventory files

; variable for all hosts
[all:vars]
ansible_port=11111

; variable for group
[databases:vars]
ansible_port=22222

; variable for host
[databases]
database ansible_port=33333