Finished harmonizing both roles and updated Readme

This commit is contained in:
2025-01-09 20:05:22 +01:00
parent af65d16eb0
commit 9fafbcc7c2
3 changed files with 7 additions and 11 deletions

View File

@ -3,12 +3,13 @@
# not present.
- name: "OMZ | export vars to .zshrc if required."
blockinfile:
dest: "{{ omz_user_zshrc_path }}"
block: "{{ omz_user.settings }}"
dest: "{{ item.ansible_facts.user_home }}/.zshrc"
block: "{{ omz_custom_settings }}"
backup: "{{ omz_zshrc_backup }}"
when:
- "omz_user.settings is defined"
- "omz_custom_settings is defined"
# Don't flag this line for checking if the value is empty--checking for an
# empty value makes perfect sense.
- "omz_user.settings != ''" # noqa 602
- "omz_custom_settings != ''" # noqa 602
- "not omz_zshrc_create"
with_items: "{{ paths.results }}"

View File

@ -21,8 +21,3 @@
shell: "command -v zsh"
register: omz_zsh_installed_path
changed_when: "false"
- name: "OMZ | get user shell to zsh."
user:
name: "{{ omz_user.name }}"
shell: "{{ omz_zsh_installed_path.stdout }}"