summaryrefslogtreecommitdiff
path: root/playbooks/docker_registry.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'playbooks/docker_registry.yaml')
-rw-r--r--playbooks/docker_registry.yaml6
1 files changed, 3 insertions, 3 deletions
diff --git a/playbooks/docker_registry.yaml b/playbooks/docker_registry.yaml
index 20dfb73..3666deb 100644
--- a/playbooks/docker_registry.yaml
+++ b/playbooks/docker_registry.yaml
@@ -33,9 +33,9 @@
- name: "Copy SSL certs into nginx directory"
shell: |
- cp "/etc/ssl/certs/{{ cn }}.crt" /root/docker-registry/nginx/
- cp "/etc/ssl/certs/{{ cn }}.ca" /root/docker-registry/nginx/
- cp "/etc/ssl/private/{{ cn }}.key" /root/docker-registry/nginx/
+ cp "/etc/ssl/certs/{{ inventory_hostname }}.crt" /root/docker-registry/nginx/
+ cp "/etc/ssl/certs/{{ inventory_hostname }}.ca" /root/docker-registry/nginx/
+ cp "/etc/ssl/private/{{ inventory_hostname }}.key" /root/docker-registry/nginx/
when: ansible_distribution == "Ubuntu" or ansible_distribution == "Gentoo"
- name: "Create password file"