Can't set ansible_httpapi_port to a variable when task is delegated to another host
Not sure if it's a collection issue or a ansible-core issue, so decided to start here. Actual real-life problem caused by this is explained here: https://github.com/ansible-collections/community.zabbix/issues/1410
SUMMARY
Can't set ansible_httpapi_port to a variable when task is delegated to another host Not sure if it's a collection issue or a ansible-core issue, so decided to start here. Actual real-life problem caused by this is explained here: https://github.com/ansible-collections/community.zabbix/issues/1410
ISSUE TYPE
COMPONENT NAME
ansible.netcommon.httpapi connection
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
STEPS TO REPRODUCE
EXPECTED RESULTS
All tasks succeed
ACTUAL RESULTS
Task that sets ansible_httpapi_port to a variable fails when task is delegated to another hosts and ansible_connection is set to httpapi