mirror of
https://github.com/geerlingguy/ansible-role-docker.git
synced 2024-11-23 19:06:54 +01:00
added required packages installation as without those was not able to create container using docker_container module
This commit is contained in:
parent
a4bc441310
commit
3009f6920d
@ -38,3 +38,16 @@
|
||||
repo: "{{ docker_apt_repository }}"
|
||||
state: present
|
||||
update_cache: yes
|
||||
|
||||
- name: Install packages required for docker_container see https://docs.ansible.com/ansible/docker_container_module.html#requirements-on-host-that-executes-module
|
||||
apt: name={{item}} state=installed
|
||||
become: yes
|
||||
with_items:
|
||||
- python-dev
|
||||
- python-pip
|
||||
|
||||
|
||||
- name: pip install docker-py via pip module
|
||||
pip:
|
||||
name: docker-py
|
||||
version: 1.10.6
|
||||
|
Loading…
Reference in New Issue
Block a user