diff options
Diffstat (limited to 'ansible/test/roles/prepare-docker/tasks/python2-docker.yml')
-rw-r--r-- | ansible/test/roles/prepare-docker/tasks/python2-docker.yml | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/ansible/test/roles/prepare-docker/tasks/python2-docker.yml b/ansible/test/roles/prepare-docker/tasks/python2-docker.yml new file mode 100644 index 00000000..9cb3b483 --- /dev/null +++ b/ansible/test/roles/prepare-docker/tasks/python2-docker.yml @@ -0,0 +1,38 @@ +--- +- name: Remove docker-python that is conflicting with python2-docker + package: + name: docker-python + state: absent + +- name: Create own-repo dir + file: + path: /root/own-repo + state: directory + +- name: Download python2-docker rpm for Ansible (docker_container module dep) + get_url: + url: https://cbs.centos.org/kojifiles/packages/python-docker/2.5.1/2.el7/noarch/python2-docker-2.5.1-2.el7.noarch.rpm + dest: /root/own-repo/ + register: rpm + +- name: Install createrepo + package: + name: createrepo + state: present + +- name: Run createrepo + command: createrepo /root/own-repo/ + when: rpm.changed + +- name: Create own-repo + yum_repository: + name: own-repo + description: Own repo for ansible deps + baseurl: file:///root/own-repo + enabled: true + gpgcheck: false + +- name: Install docker python module + package: + name: python2-docker + state: present |