-
Notifications
You must be signed in to change notification settings - Fork 219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pip docker-compose doesn't seems to have the tag "latest" anymore #47
Comments
What type of environment are you running this under? On Ubuntu 16.04, Ubuntu 18.04 and Debian Stretch it installs on a fresh box using version "latest" with state "present". |
Microsoft Azure : Canonical, UbuntuServer, 18.04-LTS, latest |
Here's what I used for testing where everything ran successfully:
In all 3 cases, the role ran to completion and installed the latest version of Docker and Docker Compose. In all 3 cases, I ran What happens if you add that to a |
Here's a complete task you can drop in: - name: Install Python without using Ansible modules
raw: >
bash -c "test -e /usr/bin/python \
|| (apt-get -qy update && apt-get install -qy python)"
changed_when: false It's using raw since this is meant to be ran before Ansible is even capable of being run. |
Here's my playbook: - hosts: "host"
become: true
become_method: sudo
roles:
- { role: "nickjj.docker", tags: ["docker"] }
pre_tasks:
- name: Install python 2
raw: test -e /usr/bin/python || (apt -y update && apt install -y python-minimal) |
Does anything change if you use |
Same error with |
You could try adding this after the - name: Upgrade PIP
pip:
name: "pip"
virtualenv: "{{ docker__pip_virtualenv }}"
state: "forcereinstall" Truthfully I'm not sure why that would be needed on Azure, but it's worth trying. |
Also what version of Ansible are you using? Maybe the |
Another thing you could try is setting |
I'm using Ansible 2.5.1 |
Working fine with Ansible 2.7.5 |
Thanks. Did you happen to try |
Going by some PR I read I think I think any version that's not parseable as a version is getting cast to I'll leave this issue open until I address a solution that works for both 2.5.x and 2.7.x, thanks for the heads up. |
Closing this. It's been addressed in |
Installing the role:
Output:
The text was updated successfully, but these errors were encountered: