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

Does not work as expected #109

Closed piotrkochan closed 4 years ago

piotrkochan commented 4 years ago

Simple role with username only installs zsh, oh-my-zsh but user to be able to 'use' oh-my-zsh must type zsh in the terminal anyway In fact zsh is being set as default shell as expected but still themes and other stuff not loading automatically.

Os: Ubuntu 20 Focal LTS

4F2E4A2E commented 4 years ago

Hi there, for me it worked very well, here is how I did it:

install

yum install sshpass -y
ansible-galaxy install gantsign.oh-my-zsh

config

inventory

[centos_worker_1]
0.0.0.0

[centos_worker_1:vars]
ansible_host=0.0.0.0
ansible_connection=ssh
ansible_user=root
ansible_ssh_common_args='-o StrictHostKeyChecking=no'

playbook

- hosts: centos_worker_1
  roles:
    - role: gantsign.oh-my-zsh
      users:
        - username: root

run

ansible-playbook -c ssh --ask-pass -i inventory main.yml

The only thing not working are the themes. This is the message after the login:

/root/.oh-my-zsh/oh-my-zsh.sh:source:128: no such file or directory: /root/.oh-my-zsh/themes/Powerlevel9k.zsh-theme

Os: CentOs 8

piotrkochan commented 4 years ago

It works, it was just another weird wsl issue