From 5b03bb0463e9b617ee963bc9555b1c011b9da550 Mon Sep 17 00:00:00 2001 From: suhailmuzaffarbhat-sketch Date: Wed, 25 Feb 2026 16:01:48 +0800 Subject: [PATCH] Fix Ansible task for installing Nginx on Pathnex server Updated Ansible task for installing Nginx with corrections and additional formatting. --- week1/Day01.md | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/week1/Day01.md b/week1/Day01.md index 37f6a2a..ef2d4ad 100644 --- a/week1/Day01.md +++ b/week1/Day01.md @@ -1,11 +1,20 @@ -# Day 01 — Basics +- name: Install Nginx on Pathnex server + hosts: all + become: yes + + tasks: + - name: Install nginx + yum: + name: nginx + state: present + # Day 01 — Basics ## 🔹 Ansible Task — Install Nginx on Pathnex Server Rewrite this YAML manually: ```yaml -- name: Install Nginx on Pathnex server +- name: name: Install Nginx on Pathnex server hosts: all become: yes @@ -14,3 +23,11 @@ Rewrite this YAML manually: yum: name: nginx state: present +-name: install Ngnix on Pathnex server +hosts: all +become: yes + +tasks : +-name Suhail +state present +# Day one bascis learning code