Ansible Project: Infrastructure as Code

This project focuses on automating infrastructure deployments using Ansible. It aims to provide a consistent and repeatable approach to provisioning servers, configuring networks, and managing applications.

Playbook Example: server_setup.yml

            ---
            - name: Install Apache Web Server
              hosts: webservers
              tasks:
                - name: Install Apache
                  apt:
                    name: apache2
                    state: present
                - name: Enable Apache
                  service:
                    name: apache2
                    state: started
                    enabled: yes
            

Inventory File (inventory)

            [webservers]
            server1.example.com
            server2.example.com

            [database_servers]
            db1.example.com
            

Dependencies

This project relies on the following: