Comments (2)
@Wolfeg thanks for reporting this issue. Sorry for the late reply. If I understand correctly, you're trying to run the role using an unprivileged user. Unfortunately, I don't think that'll work, the role was designed to be run by a user with root
privileges to install Oh My Zsh for multiple users. In hindsight, it would probably have been better to just install Oh My Zsh for the current user without requiring root
privileges, but that would be too big a breaking change at this point.
from ansible-role-oh-my-zsh.
I have main playbook like this:
---
- hosts: all
## I use become to get sudo rights
become: yes
roles:
- ssh-users
- sshd-config
- tz-data
- cloudalchemy.node_exporter
inside ssh-users role i have task:
- name: Installing oh my zsh
include_role:
name: gantsign.oh-my-zsh
and inside ssh-users role defaults:
users:
- username: user1
admin: yes
oh_my_zsh:
theme: fino-time
plugins:
- git
- z
update_mode: auto
update_frequency: 0
- username: user2
admin: yes
oh_my_zsh:
theme: fino-time
plugins:
- git
- z
update_mode: auto
update_frequency: 0
- username: root
oh_my_zsh:
theme: fino-time
plugins:
- git
- z
update_mode: auto
update_frequency: 0
I can't remember what error gave me ansible, that was something about acl. I run playbooks under user with sudo group.
I've fixed it with this additional task:
- name: Install acl
apt:
name: acl
update_cache: yes
from ansible-role-oh-my-zsh.
Related Issues (20)
- Error when installing role on OSX HOT 1
- Does not work as expected HOT 2
- Feature Request: Custom plugin installation HOT 5
- Prexis the users variable HOT 1
- Customising .zshrc HOT 2
- Disabled updated HOT 6
- how to install ohmyzsh for users using loop? HOT 3
- change in theme/plugins doesn't make it to .zshrc HOT 3
- Whitelist Dependabot in cla-assistant
- Add option to skip default .zshrc file creation HOT 5
- What should I do to make zsh-autosuggestions work? HOT 3
- Install custom themes and plugins
- chmod: invalid mode HOT 1
- Add support for Fedora 25
- Add support for OpenSUSE 42.2
- `users` variable name too generic HOT 1
- Temp file issues HOT 2
- Allow overriding .zshrc templates HOT 1
- Unable to write .zshrc while connected with unprivilegied user HOT 5
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-oh-my-zsh.