commit a193bad0b50bede2b15e0e66cc4b500ce6b2ba1a Author: Arnaud Nelissen Date: Sun Jun 1 22:20:56 2025 +0200 Initial Commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e69de29 diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 0000000..bdc0ed6 --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2025 Arnaud Nelissen + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..fa51a22 --- /dev/null +++ b/README.md @@ -0,0 +1,67 @@ +# Ansible Playbook Repository + +This repository contains Ansible playbooks for automating the configuration and deployment of infrastructure. + +## Table of Contents + +- [Prerequisites](#prerequisites) +- [Getting Started](#getting-started) +- [Playbook Structure](#playbook-structure) +- [Running the Playbook](#running-the-playbook) +- [Contributing](#contributing) +- [License](#license) + +## Prerequisites + +Before you begin, ensure you have the following installed: + +- [Ansible](https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html) +- [Python](https://www.python.org/downloads/) +- [Git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git) + +## Getting Started + +1. Clone the repository: + ```sh + git clone ssh://gitea@git.arnaudne.fr:2221/arnaudne/ansible.git + cd Ansible + ``` + +2. Install the required Ansible roles and collections: + ```sh + 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: + +```sh +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: + +1. Fork the repository. +2. Create a new branch (`git checkout -b feature-branch`). +3. Make your changes. +4. Commit your changes (`git commit -m 'Add new feature'`). +5. Push to the branch (`git push origin feature-branch`). +6. Open a pull request. + +## License + +This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details. \ No newline at end of file