mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-23 12:33:59 -07:00
scaleway: Introduce scaleway_security_group_facts module
Co-authored-by: Rémy Leone <rleone@online.net>
This commit is contained in:
parent
8f9d55529d
commit
4bdec575c0
3 changed files with 99 additions and 3 deletions
|
@ -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
|
|
@ -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 }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue