{"id":29193038,"url":"https://github.com/naserraoofi/ansible","last_synced_at":"2026-06-23T16:32:31.672Z","repository":{"id":302280500,"uuid":"1010642322","full_name":"NaserRaoofi/ansible","owner":"NaserRaoofi","description":"Production-ready Ansible infrastructure automation following enterprise best practices for multi-environment deployments.","archived":false,"fork":false,"pushed_at":"2025-07-01T13:12:59.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-19T04:58:03.848Z","etag":null,"topics":["devops"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NaserRaoofi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-29T14:06:54.000Z","updated_at":"2025-07-08T12:54:50.000Z","dependencies_parsed_at":"2025-07-01T14:29:09.462Z","dependency_job_id":"3e2b9ef3-9539-4231-a228-941d5027bee2","html_url":"https://github.com/NaserRaoofi/ansible","commit_stats":null,"previous_names":["naserraoofi/ansible"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/NaserRaoofi/ansible","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NaserRaoofi%2Fansible","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NaserRaoofi%2Fansible/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NaserRaoofi%2Fansible/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NaserRaoofi%2Fansible/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NaserRaoofi","download_url":"https://codeload.github.com/NaserRaoofi/ansible/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NaserRaoofi%2Fansible/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34698687,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-23T02:00:07.161Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["devops"],"created_at":"2025-07-02T02:07:19.512Z","updated_at":"2026-06-23T16:32:31.654Z","avatar_url":"https://github.com/NaserRaoofi.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🏭 Enterprise Ansible Project\n\n## 🎯 Overview\nProduction-ready Ansible infrastructure automation following enterprise best practices for multi-environment deployments.\n\n## �️ Project Structure\n\n```\n📁 ansible-project/\n├── 📄 ansible.cfg                     # Enterprise Ansible configuration\n├── 📄 dynamic_inventory.py            # Dynamic inventory for cloud environments\n├── 📄 .gitignore                      # Git ignore patterns\n├── 📄 CONNECT-STEPS.md                # SSH connectivity setup guide\n├── 📄 ENTERPRISE-STRUCTURE.md         # Architecture documentation\n│\n├── 📁 inventories/                    # Multi-environment inventories\n│   ├── 📁 production/\n│   │   ├── 📄 hosts                   # Production inventory\n│   │   └── 📁 group_vars/\n│   │       ├── 📄 all.yml             # Global production variables\n│   │       └── 📄 webservers.yml      # Web tier configuration\n│   └── 📁 staging/\n│       ├── 📄 hosts                   # Staging inventory\n│       └── 📁 group_vars/\n│           └── 📄 all.yml             # Staging configuration\n│\n├── 📁 playbooks/                      # Deployment playbooks\n│   ├── 📄 site.yml                   # Master orchestration playbook\n│   ├── 📄 enterprise-deployment.yml   # Enterprise deployment logic\n│   ├── 📄 connect-test.yml           # Connectivity testing\n│   └── 📄 install-tools.yml          # DevOps tools installation\n│\n└── 📁 roles/                          # Reusable Ansible roles (ready for expansion)\n```\n\n## 🚀 Quick Start\n\n### 1. Environment Setup\n```bash\n# Clone the repository\ngit clone \u003crepository-url\u003e\ncd ansible-project\n\n# Install Ansible (if not already installed)\npip install ansible\n\n# Set up SSH keys\ncp your-private-key.pem ~/.ssh/\nchmod 600 ~/.ssh/your-private-key.pem\n```\n\n### 2. Test Connectivity\n```bash\n# Test staging environment\nansible-playbook -i inventories/staging/hosts playbooks/connect-test.yml\n\n# Test production environment  \nansible-playbook -i inventories/production/hosts playbooks/connect-test.yml\n```\n\n### 3. Deploy Infrastructure\n```bash\n# Deploy to staging\nansible-playbook -i inventories/staging/hosts playbooks/site.yml\n\n# Deploy to production (with confirmation)\nansible-playbook -i inventories/production/hosts playbooks/site.yml --check\nansible-playbook -i inventories/production/hosts playbooks/site.yml\n```\n- Ansible installed\n- SSH access to target servers\n- AWS EC2 instance with proper key pair\n\n### Quick Start\n```bash\n# Test connectivity\nansible-playbook -i inventory connect-test.yml\n\n# Install essential DevOps tools\nansible-playbook -i inventory install-tools.yml\n\n# Install vim editor\nansible-playbook -i inventory install-vim.yml\n```\n\n## 🛠️ What's Installed\n\n### DevOps Tools Installed\n- **Git** - Version control (v2.47.1)\n- **Docker** - Containerization (v25.0.8)\n- **vim** - Text editor (v9.1)\n- **htop** - System monitoring\n- **tree** - Directory structure viewer\n- **wget** - File downloads\n- **unzip** - Archive extraction\n\n### Services Configured\n- Docker service (started and enabled)\n- User permissions (ec2-user added to docker group)\n\n## 📋 Server Configuration\n\n**Target Server**: AWS EC2 Instance\n- **OS**: Amazon Linux 2023\n- **Architecture**: x86_64\n- **Memory**: 949MB\n- **Storage**: 8GB (6.5GB available)\n- **Hostname**: ip-172-31-85-3\n- **Private IP**: 172.31.85.3\n\n## 🔐 Security\n\n- SSH key-based authentication\n- Private keys excluded from repository\n- Proper file permissions enforced (chmod 600)\n- Host key checking disabled for lab environment\n\n## 📚 Learning Progress\n\n1. ✅ **Ansible Setup** - Installation and configuration complete\n2. ✅ **SSH Connectivity** - Key-based authentication working\n3. ✅ **Package Management** - Successfully installing software via Ansible\n4. ✅ **Service Management** - Starting and enabling services\n5. ✅ **User Management** - Adding users to groups\n6. ✅ **Version Control** - Git integration and GitHub deployment\n\n## 🎓 Next Steps\n\n- [ ] Container deployment with Docker\n- [ ] Application deployment automation\n- [ ] Monitoring and logging setup\n- [ ] Multi-environment configuration\n- [ ] CI/CD pipeline integration\n\n## 🔧 Connection Details\n\n**SSH Connection**: \n```bash\nssh -i ~/.ssh/ansibletestkey.pem ec2-user@ec2-100-27-28-140.compute-1.amazonaws.com\n```\n\n**Ansible Inventory**: Configured for single EC2 instance with both webserver and database roles\n\n---\n\n**Created**: June 29, 2025  \n**Last Updated**: July 1, 2025  \n**Author**: NaserRaoofi  \n**Purpose**: Learning DevOps automation with Ansible\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaserraoofi%2Fansible","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnaserraoofi%2Fansible","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaserraoofi%2Fansible/lists"}