Coder Social home page Coder Social logo

Comments (4)

artis3n avatar artis3n commented on August 23, 2024

I should add that the Molecule Docker container I am using is modified to include an ansible user with sudo privileges: https://github.com/artis3n/docker-ubuntu1804-ansible/blob/master/Dockerfile#L52

from ansible-role-visual-studio-code.

freemanjp avatar freemanjp commented on August 23, 2024

I'm guessing it's a problem with your sudo configuration. I've changed the Molecule tests to run using a non-privileged user (see #167). Be aware the name of the sudo group varies between Linux distributions (sometimes it's sudo and others it's wheel). Be aware you may want to be more selective with the permissions grant to the user/group in the /etc/sudoers.

Hope that helps.

from ansible-role-visual-studio-code.

artis3n avatar artis3n commented on August 23, 2024

I appreciate you taking the time to look into it. I'll have to play around with this ubuntu sudo configuration and make sure my Docker image has properly set it up.

from ansible-role-visual-studio-code.

artis3n avatar artis3n commented on August 23, 2024

...... I updated requirements.yml to use ansible_user for the username to this role but did not update my playbook.

roles:
    - role: gantsign.visual-studio-code
      users:
        - username: "{{ ansible_user }}" # <-- this was still set to lookup('env', 'USER')
          visual_studio_code_extensions:
            - Shan.code-settings-sync
    - role: artis3n.bitwarden_app

... well I hate everything but thanks again @freemanjp for looking into it. I still get an error running from a GitHub Actions workflow but now it has to do with missing dependencies in my docker image, that I can work with.

    TASK [gantsign.visual-studio-code : install extensions] ************************
    failed: [instance] (item=[{'username': 'ansible'}, 'Shan.code-settings-sync']) => {"ansible_loop_var": "item", "changed": false, "item": [{"username": "ansible"}, "Shan.code-settings-sync"], "msg": "Error querying installed extensions [Shan.code-settings-sync]: /usr/share/code/bin/../code: error while loading shared libraries: libX11-xcb.so.1: cannot open shared object file: No such file or directory\n"}

from ansible-role-visual-studio-code.

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.