diff options
author | Toshio Kuratomi <a.badger@gmail.com> | 2017-03-14 09:07:22 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-14 09:07:22 -0700 |
commit | eb1214baad0cbe2c4b7304caebb9ae1c7dc0d8db (patch) | |
tree | 5dbfed38c583a78e5f959aa11fb902d9994c889a /lib/ansible/modules/inventory | |
parent | 2be3418a8150ab1099e23e613919a7337e13934f (diff) | |
download | ansible-eb1214baad0cbe2c4b7304caebb9ae1c7dc0d8db.tar.gz |
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
Diffstat (limited to 'lib/ansible/modules/inventory')
-rw-r--r-- | lib/ansible/modules/inventory/add_host.py | 7 | ||||
-rw-r--r-- | lib/ansible/modules/inventory/group_by.py | 7 |
2 files changed, 8 insertions, 6 deletions
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 <http://www.gnu.org/licenses/>. -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 <http://www.gnu.org/licenses/>. -ANSIBLE_METADATA = {'status': ['stableinterface'], - 'supported_by': 'core', - 'version': '1.0'} +ANSIBLE_METADATA = {'metadata_version': '1.0', + 'status': ['stableinterface'], + 'supported_by': 'core'} + DOCUMENTATION = ''' --- |