From 85cc47c9e1dc21b2eb61a2b09c390fb941da89c6 Mon Sep 17 00:00:00 2001 From: Olaf Kilian Date: Fri, 23 Oct 2015 06:28:28 +0200 Subject: [PATCH] Default registry to docker hub --- cloud/docker/docker_login.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cloud/docker/docker_login.py b/cloud/docker/docker_login.py index 1292fe38909..cd670d345db 100644 --- a/cloud/docker/docker_login.py +++ b/cloud/docker/docker_login.py @@ -33,8 +33,9 @@ description: options: registry: description: - - URL of the registry, for example: https://index.docker.io/v1/ - required: true + - URL of the registry, defaults to: https://index.docker.io/v1/ + required: false + default: https://index.docker.io/v1/ username: description: - The username for the registry account @@ -214,7 +215,7 @@ def main(): module = AnsibleModule( argument_spec = dict( - registry = dict(required=True), + registry = dict(required=False, default='https://index.docker.io/v1/'), username = dict(required=True), password = dict(required=True), email = dict(required=False, default='anonymous@localhost.local'),