Fix assert conditions for Ansible 2.19 (string expressions) (#1048)