Image publishing: add both Python 2 & 3 packages
Change-Id: Idbcfb3678ba2a2c376baca4c6469495e36bf15d1
This commit is contained in:
parent
8b796ea963
commit
28c08bfd38
@ -19,13 +19,12 @@
|
|||||||
apt:
|
apt:
|
||||||
pkg:
|
pkg:
|
||||||
- python-docker
|
- python-docker
|
||||||
|
- python3-docker
|
||||||
|
- python-requests
|
||||||
- python3-requests
|
- python3-requests
|
||||||
state: present
|
state: present
|
||||||
become: true
|
become: true
|
||||||
when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'
|
when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'
|
||||||
- name: Install docker pip module
|
|
||||||
pip:
|
|
||||||
name: docker
|
|
||||||
- name: Publish images
|
- name: Publish images
|
||||||
block:
|
block:
|
||||||
- docker_login:
|
- docker_login:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user