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