Git Product home page Git Product logo

Comments (5)

popstas avatar popstas commented on July 28, 2024

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.

lcd1232 avatar lcd1232 commented on July 28, 2024

@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.

popstas avatar popstas commented on July 28, 2024

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.

lcd1232 avatar lcd1232 commented on July 28, 2024

@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.

popstas avatar popstas commented on July 28, 2024

@lcd1232, sorry for loooong delay ) Check #19, you can change ~/.antigen owner to your user.

from ansible-role-zsh.

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.