ansible-collections-openstack/contrib/generate_module.sh
Sagi Shnaidman 5667600420 Add template for generation of artibtrary module
One is for resource changing module, like server start or delete,
second one is for info collection about a specific resource.

Change-Id: I78b35075111731fff2fd50837fa4e6e0c61c55a0
2020-05-25 02:27:40 +03:00

6 lines
327 B
Bash
Executable File

#!/bin/bash
# For resource changing module
ansible localhost -c local -m template -a "src=module_template.py.j2 dest=my_module.py" -e @module_template_vars.yaml
# For resource info collection module
ansible localhost -c local -m template -a "src=module_info_template.py.j2 dest=my_module_info.py" -e @module_template_vars.yaml