Finished harmonizing both roles and updated Readme
This commit is contained in:
@ -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 }}"
|
@ -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 }}"
|
||||
|
Reference in New Issue
Block a user