github_release: Fix state returned from module (#33735)

This fix corrects the module state returned by github_module.
Now,
* When the release already exists, state is "ok"
* When the release is created, state is "changed"

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
Abhijeet Kasurde
2018-01-23 08:37:41 +05:30
committed by GitHub
parent b151f5d942
commit c0df05c028
2 changed files with 18 additions and 5 deletions

View File

@@ -64,7 +64,12 @@ Modules
Major changes in popular modules are detailed here
No notable changes.
github_release
--------------
In Ansible versions 2.4 and older, after creating a GitHub release using the ``create_release`` state, the ``github_release`` module reported state as ``skipped``.
In Ansible version 2.5 and later, after creating a GitHub release using the ``create_release`` state, the ``github_release`` module now reports state as ``changed``.
Modules removed
---------------