Comments (5)
Use zsh_antigen_bundles_extras
variable in playbook, see example:
- hosts: all
vars:
zsh_antigen_bundles_extras:
- nvm
- joel-porquet/zsh-dircolors-solarized
zsh_autosuggestions_bind_key: "^U"
roles:
- viasite-ansible.zsh
from ansible-role-zsh.
@popstas I tried with playbook and command sudo ansible-playbook -i "localhost," -c local playbook.yml
but it doesn't work
- hosts: all
vars:
zsh_antigen_bundles_extras:
- redis-cli
zsh_autosuggestions_bind_key: "^U"
roles:
- viasite-ansible.zsh
In this example I want to add redis-cli plugin from main repo.
from ansible-role-zsh.
Maybe, you want to apply config for current user, but applied it to root.
Check /root/.zshrc for redis-cli presence, if it present, add your user to playbook vars:
- hosts: all
vars:
zsh_user: myuser
zsh_antigen_bundles_extras:
- redis-cli
zsh_autosuggestions_bind_key: "^U"
roles:
- viasite-ansible.zsh
from ansible-role-zsh.
@popstas sorry for big delay, yes I found redis-cli in /root/.zshrc but when I tried to add this to me like you said I got an error:
sudo ansible-playbook -i "localhost," -c local playbook.yml
PLAY [all] **************************************************************************************
TASK [Gathering Facts] **************************************************************************
ok: [localhost]
TASK [viasite-ansible.zsh : Install zsh, git, wget] *********************************************
ok: [localhost] => (item=zsh)
ok: [localhost] => (item=git)
ok: [localhost] => (item=wget)
TASK [viasite-ansible.zsh : Clone antigen master] ***********************************************
fatal: [localhost]: FAILED! => {"changed": false, "cmd": "/usr/bin/git clone --origin origin https://github.com/zsh-users/antigen.git /home/mikhail/.antigen/antigen", "failed": true, "msg": "fatal: could not create work tree dir '/home/mikhail/.antigen/antigen': Permission denied", "rc": 128, "stderr": "fatal: could not create work tree dir '/home/mikhail/.antigen/antigen': Permission denied\n", "stderr_lines": ["fatal: could not create work tree dir '/home/mikhail/.antigen/antigen': Permission denied"], "stdout": "", "stdout_lines": []}
to retry, use: --limit @/home/mikhail/playbook.retry
PLAY RECAP **************************************************************************************
localhost : ok=2 changed=0 unreachable=0 failed=1
from ansible-role-zsh.
@lcd1232, sorry for loooong delay ) Check #19, you can change ~/.antigen owner to your user.
from ansible-role-zsh.
Related Issues (20)
- TASK [viasite-ansible.zsh : Merge bundles lists] HOT 2
- How enable kubectl plugin? HOT 3
- kubectl helm and other oh my zsh plugins doesn't work HOT 1
- No zprofile? HOT 3
- Feature: DIR_ETC and DIR_PATH_HILIGHT coloring support HOT 1
- Unsupported paramters for (homebrew) module HOT 2
- vim: please remove default editor HOT 1
- autosuggestions: Wishing to delete the Ctrl+U binding HOT 1
- Windows line-endings? HOT 7
- How to deal with autoload and oh-my-zsh plugins? HOT 1
- please remove zsh_reload HOT 3
- http://ppa.launchpad.net/morphis/anbox-support/ubuntu focal Release 404 Not Found HOT 1
- Version comparison: '<' not supported between instances of 'str' and 'int' HOT 2
- ansible 2.13.1 ''str object'' has no attribute ''hotkey''' HOT 11
- 'antigen bundle [' in ~/.zshrc HOT 4
- TASK [viasite-ansible.zsh : Download fzf to ~root/bin] fails on arm architecture HOT 1
- no hotkeys in .zshrc
- Feature request: MacOS install guide or zero-knowledge install HOT 1
- create direcoty ~test1/.antigen HOT 1
- ALMA 9.3 fdfind: command not found... 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-zsh.