DAY 9 — CONDITIONALS, LOOPS & HANDLERS (Deep + Practical)
⭐ PART 1 — Conditionals (when:)
Conditional = “Ye task tabhi chalana jab condition true ho.”
Example:
- name: Install Apache if OS is Ubuntu
apt:
name: apache2
state: present
when: ansible_facts['os_family'] == "Debian"
Agar OS Debian/Ub...
surajcode.hashnode.dev3 min read