--- - hosts: localhost connection: local gather_facts: no tasks: - name: remove ssh keypair(s) include_role: name: openshift_aws tasks_from: uninstall_ssh_keys.yml when: openshift_aws_users | default([]) | length > 0