refactor: migrate to role-based variable management and blockinfile config

This commit is contained in:
Tuan-Dat Tran
2026-03-22 23:46:42 +01:00
parent 222062c1a4
commit 4a1da18801
13 changed files with 146 additions and 93 deletions

View File

@@ -0,0 +1 @@
---

View File

@@ -13,12 +13,12 @@
- kubectx
state: present
- name: Setup shell aliases
lineinfile:
path: "{{ lookup('env', 'HOME') }}/.zshrc"
line: "{{ item }}"
create: yes
loop:
- alias kc='kubectl'
- alias kctx='kubectx'
- alias kns='kubens'
- name: Deploy DevOps aliases
blockinfile:
path: "{{ archsetup_user_home }}/.zshrc"
marker: "# {mark} ANSIBLE MANAGED DEVOPS"
block: |
# DevOps aliases
alias kc="kubectl"
alias kctx="kubectx"
alias kns="kubens"