diff --git a/common.yml b/common.yml index 3c401e6..e2bfb7d 100644 --- a/common.yml +++ b/common.yml @@ -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 diff --git a/roles/common/tasks/main.yml b/roles/common/tasks/main.yml index ffcc600..f2ed302 100644 --- a/roles/common/tasks/main.yml +++ b/roles/common/tasks/main.yml @@ -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 }}"