Add push playbook

Change-Id: I9c8d31080b13284338f8ecad397480965df4b647
This commit is contained in:
Sam Yaple 2017-10-16 13:22:13 -04:00
parent cd4089f75c
commit 9a5d5ce78c
1 changed files with 11 additions and 0 deletions

11
playbooks/push.yaml Normal file
View File

@ -0,0 +1,11 @@
- hosts: all
tasks:
- include_vars: vars.yaml
- name: Push project to DockerHub
block:
- command: docker login -u {{ loci_docker_login.user }} -p {{ loci_docker_login.password }}
no_log: True
- command: docker push openstackloci/{{ project }}:master-{{ item.name }}
with_items: "{{ distros }}"
become: True