Templates That Survive Missing Variables

Fix an undefined variable and a list/string type error in a Jinja2 template.

A beginner Ansible challenge worth 3 points. Solve it hands-on in a real Ansible environment in your browser - no local setup, no fake shells.

The Challenge

Scenario: The play dies on web02 with 'upstream_timeout' is undefined, and the cipher list was pasted from a chat message as one string, so | join(':') joins its characters.

Make both web servers render ~/etc/upstream.conf with timeout = 30 on web01, timeout = 15 on web02, retries = 3 from an in-template default, and ciphers = HIGH:!aNULL:!MD5. Then run check.