diff --git a/docs/docsite/rst/porting_guides/porting_guide_2.8.rst b/docs/docsite/rst/porting_guides/porting_guide_2.8.rst index d47e14537f..79fe5d387d 100644 --- a/docs/docsite/rst/porting_guides/porting_guide_2.8.rst +++ b/docs/docsite/rst/porting_guides/porting_guide_2.8.rst @@ -96,6 +96,7 @@ The following modules will be removed in Ansible 2.12. Please update your playbo * ``foreman`` use instead. * ``katello`` use instead. +* ``github_hooks`` use :ref:`github_webhook ` and :ref:`github_webhook_facts ` instead. Noteworthy module changes diff --git a/lib/ansible/modules/source_control/github_hooks.py b/lib/ansible/modules/source_control/_github_hooks.py similarity index 96% rename from lib/ansible/modules/source_control/github_hooks.py rename to lib/ansible/modules/source_control/_github_hooks.py index df0f0f2199..fd812f9b95 100644 --- a/lib/ansible/modules/source_control/github_hooks.py +++ b/lib/ansible/modules/source_control/_github_hooks.py @@ -9,7 +9,7 @@ __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', - 'status': ['preview'], + 'status': ['deprecated'], 'supported_by': 'community'} @@ -17,6 +17,10 @@ DOCUMENTATION = ''' --- module: github_hooks short_description: Manages GitHub service hooks. +deprecated: + removed_in: "2.12" + why: Replaced by more granular modules + alternative: Use M(github_webhook) and M(github_webhook_facts) instead. description: - Adds service hooks and removes service hooks that have an error status. version_added: "1.4"