- name: test hosts: localhost tasks: - include_tasks: ../roles/cloud-ec2/tasks/discover-credentials.yml - assert: { that: "aws_access_key == 'example_key'" } - assert: { that: "aws_secret_key == 'example_secret'" }