mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
scaleway: Introduce scaleway_security_group_facts module
Co-authored-by: Rémy Leone <rleone@online.net>
This commit is contained in:
committed by
Michael Scherer
parent
8f9d55529d
commit
4bdec575c0
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user