15 lines
566 B
YAML
15 lines
566 B
YAML
---
|
|
# Note that we assume this file exists! lineinfile will fail if the file is
|
|
# not present.
|
|
- name: "OMZ | export vars to .zshrc if required."
|
|
blockinfile:
|
|
dest: "{{ item.ansible_facts.user_home }}/.zshrc"
|
|
block: "{{ omz_custom_settings }}"
|
|
backup: "{{ omz_zshrc_backup }}"
|
|
when:
|
|
- "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_custom_settings != ''" # noqa 602
|
|
- "not omz_zshrc_create"
|
|
with_items: "{{ paths.results }}" |