OS_getInfo Playbook

This commit is contained in:
Fabio Sinibaldi 2026-07-14 17:30:01 +02:00
parent 8d38f71eb5
commit da05908d65
2 changed files with 40 additions and 0 deletions

View File

@ -0,0 +1,37 @@
---
- hosts: localhost
collections:
- openstack.cloud
vars:
cloud: openstack
tasks:
- name : Get images
resources:
service: image
type: image
register: images
- debug:
msg: "Images : {{images.resources | mapattributes(['name','status']) | to_nice_yaml}}"
- name : Get compute flavors
resources:
service: compute
type: flavor
register: flavors
- debug:
msg: "Flavors : {{flavors.resources | mapattributes(['name','ram','vcpus']) | to_nice_yaml}}"
- name : Get networks
resources:
service: network
type: network
register: networks
- debug:
msg: "Networks : {{networks.resources | mapattributes(['name','status']) | to_nice_yaml}}"

View File

@ -32,6 +32,9 @@ collections:
- name: chrissayon.wordpress_docker
version: 1.0.2
- name: openstack.cloud
version: 2.6.0
# dockerless wordpress
# - name: iamgini.wordpress
# version: 1.0.0