Browse Source

[#10] Dejar de loguear contra registry en local

Se hace des-definiendo la variable docker_registry_url, que define donde
esta el registry. Se asume que si esta no está definida, no tiene que
loguearse contra este.
tags/v1.2.3
drymer 1 year ago
parent
commit
dd13fc4ab8
Signed by: drymer <drymer@autistici.org> GPG Key ID: A307D64D5DDFDAAD
2 changed files with 3 additions and 2 deletions
  1. 0
    1
      defaults/main.yml
  2. 3
    1
      tasks/main.yml

+ 0
- 1
defaults/main.yml View File

@@ -6,7 +6,6 @@ git_repository_tag:
6 6
 service_name:
7 7
 service_name_prefix:
8 8
 docker_registry:
9
-docker_registry_url:
10 9
 docker_registry_read:
11 10
 registry_user:
12 11
 registry_password:

+ 3
- 1
tasks/main.yml View File

@@ -5,7 +5,9 @@
5 5
     registry: "{{ docker_registry }}"
6 6
     username: "{{ registry_user }}"
7 7
     password: "{{ registry_password }}"
8
-  when: remote_build == False
8
+  when:
9
+    - remote_build == False
10
+    - docker_registry_url is defined
9 11
 
10 12
 - name: Clone git repository
11 13
   local_action:

Loading…
Cancel
Save