diff --git a/tasks/download/nexus.yml b/tasks/download/nexus.yml index 3026558..a907384 100644 --- a/tasks/download/nexus.yml +++ b/tasks/download/nexus.yml @@ -11,8 +11,8 @@ repository_url: "{{ item.repository_url }}" dest: "{{ dispatcher_download_path }}/{{ dispatcher_tarball_name }}" extension: tar.gz - username: "{{ nexus_username }}" - password: "{{ nexus_password }}" + username: "{{ nexus_username | default(omit) }}" + password: "{{ nexus_password | default(omit) }}" version: "{{ item.version | default(dispatcher_version) }}" classifier: "{{ item.classifier | default(dispatcher_tarball_name | regex_replace('dispatcher-(.*)-([\\d\\.]*)\\.tar\\.gz', '\\1')) }}" with_items: "{{ dispatcher_mvn_coordinates }}" \ No newline at end of file