Description of problem: Suppose below is the structure of the yaml file and now we need to pass variables hostname and iburst. ------------------------------------------------------------- - hosts: all vars: timesync_ntp_servers: - hostname: 192.168.123.10 iburst: yes - hostname: 192.168.123.20 iburst: yes timesync_ntp_provider: chrony timesync_step_threshold: 1.0 timesync_dhcp_ntp_servers: no roles: - linux-system-roles.timesync ------------------------------------------------------------- Because of the following bug we cannot provide value to global parameter like - "[ { 'hostname': '10.10.10.10', 'iburst': 'yes' }, { 'hostname': '20.20.20.20', 'iburst': 'yes' }]" https://bugzilla.redhat.com/show_bug.cgi?id=1402136 Version-Release number of selected component (if applicable): Red Hat Satellite 6.4 Steps to Reproduce: 1. yum install rhel-system-roles 2. Import timesync role in satellite 3. try to set variables. Actual results: Unable to pass "[ { 'hostname': '10.10.10.10', 'iburst': 'yes' }, { 'hostname': '20.20.20.20', 'iburst': 'yes' }]" in global/host parameter. Expected results: This functionality is present in upstream foreman. https://www.theforeman.org/plugins/foreman_ansible/2.x/index.html#4.1.2ImportingVariables
This functionality is provided by upcoming Ansible Variables feature