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 @@
---
- name: "OMZ | derive user .zshrc path."
set_fact:
omz_user_zshrc_path: "/{{ omz_user_home_dir }}/{{ omz_user.name }}/.zshrc"
- name: "OMZ | template .zshrc into place if required."
template:
src: "{{ omz_zshrc_template }}"
dest: "{{ omz_user_zshrc_path }}"
owner: "{{ omz_user.name }}"
group: "{{ omz_user.group }}"
backup: "{{ omz_zshrc_backup }}"
force: "{{ omz_zshrc_force }}"
when: "omz_zshrc_create"