From eb1214baad0cbe2c4b7304caebb9ae1c7dc0d8db Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Tue, 14 Mar 2017 09:07:22 -0700 Subject: New metadata 1.0 (#22587) Changes to the metadata format were approved here: https://github.com/ansible/proposals/issues/54 * Update documentation to the new metadata format * Changes to metadata-tool to account for new metadata * Add GPL license header * Add upgrade subcommand to upgrade metadata version * Change default metadata to the new format * Fix exclusion of non-modules from the metadata report * Fix ansible-doc for new module metadata * Exclude metadata version from ansible-doc output * Fix website docs generation for the new metadata * Update metadata schema in valiate-modules test * Update the metadata in all modules to the new version --- lib/ansible/modules/inventory/add_host.py | 7 ++++--- lib/ansible/modules/inventory/group_by.py | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) (limited to 'lib/ansible/modules/inventory') diff --git a/lib/ansible/modules/inventory/add_host.py b/lib/ansible/modules/inventory/add_host.py index 44ae5303cc..e48cbf4837 100644 --- a/lib/ansible/modules/inventory/add_host.py +++ b/lib/ansible/modules/inventory/add_host.py @@ -15,9 +15,10 @@ # You should have received a copy of the GNU General Public License # along with Ansible. If not, see . -ANSIBLE_METADATA = {'status': ['stableinterface'], - 'supported_by': 'core', - 'version': '1.0'} +ANSIBLE_METADATA = {'metadata_version': '1.0', + 'status': ['stableinterface'], + 'supported_by': 'core'} + DOCUMENTATION = ''' --- diff --git a/lib/ansible/modules/inventory/group_by.py b/lib/ansible/modules/inventory/group_by.py index c7cb6a034b..724c01a902 100644 --- a/lib/ansible/modules/inventory/group_by.py +++ b/lib/ansible/modules/inventory/group_by.py @@ -15,9 +15,10 @@ # You should have received a copy of the GNU General Public License # along with Ansible. If not, see . -ANSIBLE_METADATA = {'status': ['stableinterface'], - 'supported_by': 'core', - 'version': '1.0'} +ANSIBLE_METADATA = {'metadata_version': '1.0', + 'status': ['stableinterface'], + 'supported_by': 'core'} + DOCUMENTATION = ''' --- -- cgit v1.2.1