variables: site_url: '{{ browser }}' email: 'jorge@gmail.com' user: 'jorge' password: 'password1234' steps: - selenium: test: driver: '/usr/lib/chromedriver' file: resources/signup.js register: {title: '{{ OUTPUT.title }}'} - echo: {from: '{{ title }}', to: variable.output} - postgres: request: conf: '{{ postgres }}' sql: "select count(*) from users where email = '{{ email }}'" register: {count: '{{ OUTPUT.count }}'} - check: equals: {the: 1, is: '{{ count }}'} finally: - postgres: request: conf: '{{ postgres }}' sql: "delete from users where email = '{{ email }}'"