Commit 8ec65ca8 authored by Spiros Koulouzis's avatar Spiros Koulouzis

add docker log in

parent 780ba7da
......@@ -38,4 +38,20 @@
with_items: [docker-ce]
become: true
- {name: run, command: "docker login -u USER -p PASS", become: true}
- pip:
name: docker-py
become: true
- name: Log into DockerHub
docker_login:
username: USER
password: PASS
email: EMAIL
config_path: /home/vm_user/.docker/config.json
become: true
- file:
path: /home/vm_user/.docker/config.json
owner: vm_user
become: true
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment