1.9 KiB
1.9 KiB
Ansible Playbook Repository
This repository contains Ansible playbooks for automating the configuration and deployment of infrastructure.
Table of Contents
Prerequisites
Before you begin, ensure you have the following installed:
Getting Started
-
Clone the repository:
git clone ssh://gitea@git.arnaudne.fr:2221/arnaudne/ansible.git cd Ansible -
Install the required Ansible roles and collections:
ansible-galaxy install -r requirements.yml
Playbook Structure
The playbook is organized as follows:
playbooks/: Contains the main playbook files.roles/: Contains reusable roles used by the playbooks.inventory/: Contains inventory files for different environments.requirements.yml: Lists the required Ansible roles and collections.
Running the Playbook
To run the playbook, use the following command:
ansible-playbook -i inventory/production playbooks/main.yml
Replace inventory/production with the appropriate inventory file for your environment.
Contributing
Contributions are welcome! Please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch). - Make your changes.
- Commit your changes (
git commit -m 'Add new feature'). - Push to the branch (
git push origin feature-branch). - Open a pull request.
License
This project is licensed under the MIT License - see the LICENSE file for details.