Refactor ansible hosts.yml: Update hosts to include all servers

This commit is contained in:
2024-09-28 20:49:02 +08:00
parent 0b891864ea
commit 1934d62697
11 changed files with 284 additions and 8 deletions
@@ -0,0 +1,14 @@
---
# 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: "{{ omz_user_zshrc_path }}"
block: "{{ omz_user.settings }}"
backup: "{{ omz_zshrc_backup }}"
when:
- "omz_user.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
- "not omz_zshrc_create"