- name: Get security group informations and register it in a variable scaleway_security_group_facts: register: security_groups - name: Display security_groups variable debug: var: security_groups - name: Ensure retrieval of security groups facts is success assert: that: - security_groups is success