--- | |
- name: Remove docker-python that is conflicting with python2-docker | |
package: | |
name: docker-python | |
state: absent | |
- name: Download python2-docker rpm for Ansible (docker_container module dep) | |
get_url: | |
url: "{{ python2_docker_rpm_url }}" | |
dest: "{{ rpm_dir }}" | |
register: rpm | |
- name: Install docker python module | |
package: | |
name: "{{ rpm_dir + '/' + python2_docker_rpm }}" | |
state: present |