diff --git a/README.md b/README.md index f8f0819..852b5ea 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ This is a basic Ansible role to enable and configure Oh My Zsh on Fedora, Ubuntu | `omz_plugins` | `[]` | A list of Oh My Zsh plugins to enable. | ## Role variables - ZSH - Oh My ZSH -| **Variable name** | **Default value** | **Description** | +| **Variable name** | **Default value** | **Description** | |-----------------------------------|---------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------| | `p10k_repository_url` | `'https://github.com/romkatv/powerlevel10k.git'` | GitHub repository URL for Powerlevel10k. | | `p10k_users` | `["{{ ansible_user_id }}"]` | List of Linux users to install Powerlevel10k for. If empty, the current user will be used. | diff --git a/tasks/oh-my-zsh-install.yml b/tasks/oh-my-zsh-install.yml index 90712cf..2d18525 100644 --- a/tasks/oh-my-zsh-install.yml +++ b/tasks/oh-my-zsh-install.yml @@ -2,7 +2,7 @@ - name: "OMZ | establish install location." set_fact: omz_install_path: > - {% if user == 'root' %} + {% if omz_user.name == 'root' %} /root/.{{ omz_install_directory }} {% else %} /home/{{ omz_user.name }}/{{ omz_install_directory }}