List ansible-galaxy collection list Install an Ansible Collection # From Ansible Galaxy official repo ansible-galaxy collection install community.general # From a tarball locally ansible-galaxy collection install ./community-general-6.0.0.tar.gz # From custom Repo ansible-galaxy collection install...
ansible-inventory --list | jq -r 'map_values(select(.hosts != null and (.hosts | contains(["myhost"])))) | keys[]' kafka_host: "[{{ groups['KAFKA'] | map('extract', hostvars, 'inventory_hostname') | map('regex_replace', '^', '\"') | map('regex_replace', '\\\"', '\"') | map('regex_replace', '$', ':'+ kafka_port +'\"') |...