Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 776 Bytes

File metadata and controls

41 lines (28 loc) · 776 Bytes

Ansible Use Case: System Information Web Page

Overview

This project demonstrates how to use Ansible to collect system facts from a remote server and generate a dynamic HTML page using a Jinja2 template. The page is deployed to a web server for easy access.


Project Structure

system-info-project/
├── inventory.ini
├── playbook.yml
└── templates/
    └── system_info.j2

Implementation Steps

1. Create Workspace

mkdir -p ~/workspace/system-info-project
cd ~/workspace/system-info-project

2. Create Inventory File

vi inventory.ini
[server]
server1 ansible_host=server1 ansible_user=server1_admin ansible_ssh_pass=s_