--- - hosts: localhost tags: - classic roles: - role: standard-test-basic vars: - pkg: "{{playbook_dir|dirname|basename}}" - develpkg: "{{pkg}}-devel" - pkgname: "{{pkg|regex_replace('^ghc-(.*)$', '\\1')}}" required_packages: - "{{develpkg}}" tests: - ghc: run: echo 'main = return ()' > test.hs; ghc -package {{pkgname}} test.hs; ./test ...