Put the Role Back in Its Standard Layout

Restore the conventional role directories so Ansible can load it at all.

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

The Challenge

Scenario: Someone "converted the playbook to a role" using task/main.yaml, handler/main.yml and a template under files/. Ansible reports the role 'webapp' was not found.

Restore tasks/, handlers/, templates/ and add defaults/main.yml with webapp_port: 8080 and webapp_workers: 4. The group override must win (port 8090) while the role default supplies workers. Then run check.