From f408a4db02359ea66e5a7919fa3267e3c1de20bc Mon Sep 17 00:00:00 2001 From: Robin Schneider Date: Tue, 2 Aug 2016 21:12:51 +0200 Subject: [PATCH] Use HTTPS instead of legacy HTTP for ansible.com (#2636) Mechanical edit done by this "one-liner": git ls-files -z "$(git rev-parse --show-toplevel)" | xargs --null -I '{}' find '{}' -type f -print0 | xargs --null sed --in-place --regexp-extended 's#http://www\.ansible\.com#https://www.ansible.com#g;' Related to: https://github.com/ansible/ansible/issues/16869 --- lib/ansible/modules/extras/notification/rocketchat.py | 4 ++-- lib/ansible/modules/extras/notification/slack.py | 4 ++-- lib/ansible/modules/extras/windows/win_uri.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/ansible/modules/extras/notification/rocketchat.py b/lib/ansible/modules/extras/notification/rocketchat.py index 898ea6a1209..1239fc01d56 100644 --- a/lib/ansible/modules/extras/notification/rocketchat.py +++ b/lib/ansible/modules/extras/notification/rocketchat.py @@ -67,7 +67,7 @@ options: description: - URL for the message sender's icon. required: false - default: "http://www.ansible.com/favicon.ico" + default: "https://www.ansible.com/favicon.ico" icon_emoji: description: - Emoji for the message sender. The representation for the available emojis can be @@ -213,7 +213,7 @@ def main(): msg = dict(type='str', required=False, default=None), channel = dict(type='str', default=None), username = dict(type='str', default='Ansible'), - icon_url = dict(type='str', default='http://www.ansible.com/favicon.ico'), + icon_url = dict(type='str', default='https://www.ansible.com/favicon.ico'), icon_emoji = dict(type='str', default=None), link_names = dict(type='int', default=1, choices=[0,1]), validate_certs = dict(default='yes', type='bool'), diff --git a/lib/ansible/modules/extras/notification/slack.py b/lib/ansible/modules/extras/notification/slack.py index e01272c0703..40def3788a8 100644 --- a/lib/ansible/modules/extras/notification/slack.py +++ b/lib/ansible/modules/extras/notification/slack.py @@ -62,7 +62,7 @@ options: default: "Ansible" icon_url: description: - - Url for the message sender's icon (default C(http://www.ansible.com/favicon.ico)) + - Url for the message sender's icon (default C(https://www.ansible.com/favicon.ico)) required: false icon_emoji: description: @@ -223,7 +223,7 @@ def main(): msg = dict(type='str', required=False, default=None), channel = dict(type='str', default=None), username = dict(type='str', default='Ansible'), - icon_url = dict(type='str', default='http://www.ansible.com/favicon.ico'), + icon_url = dict(type='str', default='https://www.ansible.com/favicon.ico'), icon_emoji = dict(type='str', default=None), link_names = dict(type='int', default=1, choices=[0,1]), parse = dict(type='str', default=None, choices=['none', 'full']), diff --git a/lib/ansible/modules/extras/windows/win_uri.py b/lib/ansible/modules/extras/windows/win_uri.py index f4d0e459270..7045f70bd42 100644 --- a/lib/ansible/modules/extras/windows/win_uri.py +++ b/lib/ansible/modules/extras/windows/win_uri.py @@ -104,7 +104,7 @@ url: description: The Target URL returned: always type: string - sample: "http://www.ansible.com" + sample: "https://www.ansible.com" method: description: The HTTP method used. returned: always