Giter VIP home page Giter VIP logo

Comments (2)

marcbria avatar marcbria commented on July 24, 2024 1

Ok. My approach was wrong. :-)

As far as I can see the role allows to define a virtualenv, so you don't need to add additional tasks... just use the features the role offers tot you.

If you got a similar issue, my solution was restarting it all as follows:

  1. Upgrade the role to last version.
  2. Purge any docker / docker-compose and pip reference.
  3. Remove any reference to the docker repository and it's key.
  4. Remove the /usr/local/lib/docker virtualenv folder
  5. Reboot and I installed again with this playbook:
- name: Installs Docker and Docker Compose using the ansible-docker role
  hosts: all
  become: yes

  vars:
    docker__channel: ["stable"]
    docker__state: "latest"
    docker__compose_v2_version: ""
    docker__users: ["{{ ansible_env.SUDO_USER | d('root') }}"]
    # docker__pip_virtualenv: "/usr/local/lib/docker/virtualenv"
    # docker__pip_dependencies:
    #   - "python3-pip"
    #   - "virtualenv"    

  roles:
    - name: nickjj.docker

And now, all worked like a charm.

Thanks @nickjj for your great work!

from ansible-docker.

nickjj avatar nickjj commented on July 24, 2024 1

No problem, happy to hear it worked for you in the end.

By the way, the latest version of this role uses Docker Compose v2 and doesn't pip install Docker Compose v1 anymore by default, https://github.com/nickjj/ansible-docker?tab=readme-ov-file#installing-docker-compose-v1 has more details.

from ansible-docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.