Login to docker repo is now needed.

This commit is contained in:
Egon Rijpkema 2018-11-21 15:49:06 +01:00
parent 375d5fa4c9
commit 51e2bf3544
2 changed files with 13 additions and 0 deletions

View File

@ -1,5 +1,11 @@
---
- hosts: all
become: True
vars_prompt:
- name: "docker_user"
prompt: "What is your p number?"
- name: "docker_pass"
prompt: "What is your password?"
private: yes
roles:
- common

View File

@ -27,3 +27,10 @@
group: root
- import_tasks: docker.yml
- name: Log into DockerHub
docker_login:
registry: registry.webhosting.rug.nl
username: "{{ docker_user }}"
password: "{{ docker_pass }}"