Compare commits
No commits in common. "openstack_dns" and "main" have entirely different histories.
openstack_
...
main
|
|
@ -1,3 +1,2 @@
|
||||||
.DS_Store
|
.DS_Store
|
||||||
ansible/playbooks/wg_clients
|
ansible/playbooks/wg_clients
|
||||||
ansible/playbooks/filter_plugins/__pycache__
|
|
||||||
|
|
@ -215,7 +215,7 @@ ask_vault_pass=True
|
||||||
# (string) Set the main callback used to display Ansible output. You can only have one at a time.
|
# (string) Set the main callback used to display Ansible output. You can only have one at a time.
|
||||||
# You can have many other callbacks, but just one can be in charge of stdout.
|
# You can have many other callbacks, but just one can be in charge of stdout.
|
||||||
# See :ref:`callback_plugins` for a list of available options.
|
# See :ref:`callback_plugins` for a list of available options.
|
||||||
stdout_callback=debug
|
;stdout_callback=default
|
||||||
|
|
||||||
# (string) Set the default strategy used for plays.
|
# (string) Set the default strategy used for plays.
|
||||||
;strategy=linear
|
;strategy=linear
|
||||||
|
|
|
||||||
|
|
@ -1,37 +0,0 @@
|
||||||
---
|
|
||||||
- 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}}"
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1,20 +0,0 @@
|
||||||
# Source - https://stackoverflow.com/a/57665825
|
|
||||||
# Posted by Rabin, modified by community. See post 'Timeline' for change history
|
|
||||||
# Retrieved 2026-07-14, License - CC BY-SA 4.0
|
|
||||||
|
|
||||||
#!/usr/bin/env python
|
|
||||||
class FilterModule(object):
|
|
||||||
def filters(self):
|
|
||||||
return { 'mapattributes': self.mapattributes }
|
|
||||||
|
|
||||||
def mapattributes(self, list_of_dicts, list_of_keys):
|
|
||||||
l = []
|
|
||||||
for di in list_of_dicts:
|
|
||||||
newdi = { }
|
|
||||||
for key in list_of_keys:
|
|
||||||
# newdi[key] = di[key]
|
|
||||||
if di.get(key, None) != None:
|
|
||||||
newdi[key] = di[key]
|
|
||||||
|
|
||||||
l.append(newdi)
|
|
||||||
return l
|
|
||||||
|
|
@ -32,9 +32,6 @@ collections:
|
||||||
- name: chrissayon.wordpress_docker
|
- name: chrissayon.wordpress_docker
|
||||||
version: 1.0.2
|
version: 1.0.2
|
||||||
|
|
||||||
- name: openstack.cloud
|
|
||||||
version: 2.6.0
|
|
||||||
|
|
||||||
# dockerless wordpress
|
# dockerless wordpress
|
||||||
# - name: iamgini.wordpress
|
# - name: iamgini.wordpress
|
||||||
# version: 1.0.0
|
# version: 1.0.0
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue