gantsign / ansible-role-oh-my-zsh

Ansible role for installing and configuring oh-my-zsh
https://galaxy.ansible.com/gantsign/oh-my-zsh
MIT License
165 stars 41 forks source link

change in theme/plugins doesn't make it to .zshrc #145

Closed mircsicz closed 2 years ago

mircsicz commented 2 years ago

Not sure if this is an expected behaviour, but after changing the gefault theme to "gnzh" and running the role/playbook again I can't see a change on my machines .zshrc...

Expected behaviour would be for it to be like this:

ZSH_THEME="XYZ" changes to whatever I set in

    - role: gantsign.oh-my-zsh
      users:
        - username: '{{remoteuser}}'
          oh_my_zsh:
          theme: gnzh
          plugins:
            - git

sadly same is true if I add more plugins to the above shown array...

mircsicz commented 2 years ago

maybe this helps:

TASK [gantsign.oh-my-zsh : install dependencies] ********************************************************************
ok: [one-bh-xw]
ok: [one-bh-tc]
ok: [one-bh-x1]
ok: [one-bn-f36]

.
.
.

TASK [gantsign.oh-my-zsh : console setup for Debian family distributions] *******************************************
skipping: [one-bh-tc]
skipping: [one-bh-x1]
skipping: [one-bh-xw]
skipping: [one-bn-f36]
freemanjp commented 2 years ago

Hi @mircsicz it looks like an issue with the indentation of your role config. The config should be:

    - role: gantsign.oh-my-zsh
      users:
        - username: '{{remoteuser}}'
          oh_my_zsh:
            theme: gnzh
            plugins:
              - git

Notice how theme: and plugins: are indented so they're children of oh_my_zsh: rather than siblings.

mircsicz commented 2 years ago

Argggh, THX