Login to docker repo is now needed.

This commit is contained in:
Egon Rijpkema 2018-11-21 15:49:06 +01:00
parent 8aff8d97e1
commit 9d6db2c26b
2 changed files with 14 additions and 2 deletions

View File

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

View File

@ -5,7 +5,7 @@
- name: Passwordless sudo for admins - name: Passwordless sudo for admins
lineinfile: dest=/etc/sudoers line="%admin ALL=(ALL:ALL) NOPASSWD:ALL" lineinfile: dest=/etc/sudoers line="%admin ALL=(ALL:ALL) NOPASSWD:ALL"
- include: users.yml - import_tasks: users.yml
- name: common | install packages - name: common | install packages
apt: pkg={{ item }} state=latest update_cache=yes apt: pkg={{ item }} state=latest update_cache=yes
@ -29,4 +29,10 @@
- name: disable apparmor - name: disable apparmor
apt: pkg=apparmor state=absent apt: pkg=apparmor state=absent
- include: docker.yml - import_tasks: docker.yml
- name: Log into DockerHub
docker_login:
registry: registry.webhosting.rug.nl
username: "{{ docker_user }}"
password: "{{ docker_pass }}"