Comments (4)
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.
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.
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.
...... 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)
- username is used as group name HOT 1
- Duplicate sources.list entry for vs-code HOT 1
- Add ability to update settings.json HOT 3
- Role hangs when a extension is installed but a new version is available HOT 1
- Interactive vscode windows opening when installing extensions HOT 1
- Insiders uses wrong config directory for user settings. HOT 1
- "Visual Studio Code" can't be opened because Apple cannot check it for malicious software. HOT 2
- Please add Ubuntu 20.04 LTS (Focal)
- Is CXXABI_1.3.9 requirement new? HOT 3
- Declarative VS Code Extensions HOT 1
- Update Code APT repository URL - Clearsigned file isn't valid, got 'NOSPLIT' HOT 2
- Add possibility to mark the microsoft repo gpg key as trusted HOT 2
- add possibility to skip the task `install VS Code repo (apt/yum)` HOT 1
- Add support for other architectures besides AMD64 HOT 1
- Add recommended role_name HOT 1
- APT requirements causing a failure HOT 1
- Need retry functionality in install_extensions
- vscode is not automatically updated to latest if no version is set
- Provide facility to install only VS Code extensions HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-role-visual-studio-code.