OS_getInfo Playbook
This commit is contained in:
parent
8d38f71eb5
commit
da05908d65
|
|
@ -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}}"
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue