scaleway: Introduce scaleway_security_group_facts module

Co-authored-by: Rémy Leone <rleone@online.net>
This commit is contained in:
Yanis Guenane 2018-08-14 23:15:21 +02:00 committed by Michael Scherer
commit 4bdec575c0
3 changed files with 99 additions and 3 deletions

View file

@ -0,0 +1,12 @@
- 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

View file

@ -2,12 +2,11 @@
- hosts: localhost
gather_facts: no
connection: local
environment:
SCW_API_KEY: "{{ lookup('env', 'SCW_API_KEY') }}"
vars:
scw_org: "{{ lookup('env', 'SCW_ORG') }}"
roles:
- { role: scaleway_compute, tags: test_scaleway_compute }
- { role: scaleway_security_group_facts, tags: test_scaleway_security_group_facts }
- { role: scaleway_ssh, tags: test_scaleway_ssh }
- { role: scaleway_volume, tags: test_scaleway_volume }
- { role: scaleway_compute, tags: test_scaleway_compute }