ansible set_fact to the list with jinja2 condition – Ubuntu
I'd like to set a common_apt_packages list based on OS distribution, so I've used jinja2 if condition as the script below, but the return common_apt_packages type is AnsibleUnsafeText - hosts: localhost vars: common_apt_packages_ubuntu_22_04: - ack-grep - acl - apt-transport-https -…