Ansible Library is a collection of reusable Ansible roles designed to automate infrastructure setup and management. This collection includes multiple roles that can be used individually or together to configure servers efficiently.
- Multiple roles for different use cases
- Easy installation and usage with Ansible Galaxy
- Well-structured and modular
Once the collection is published on Ansible Galaxy, you can install it using:
ansible-galaxy collection install mach1el.ansible_library
Or, if using the GitHub repository directly:
git clone https://github.com/mach1el/ansible-library.git
cd ansible-library
Description: Example role to provisioning Swarm cluster.
Usage in Playbook:
- hosts: servers
roles:
- mach1el.ansible_library.role1
Description: Example role to set up keepalived.
Usage in Playbook:
- hosts: servers
roles:
- mach1el.ansible_library.role2
You can create a playbook (site.yml
) to use multiple roles:
- hosts: all
become: true
roles:
- mach1el.ansible_library.role1
- mach1el.ansible_library.role2
Run the playbook with:
ansible-playbook -i inventory site.yml
- Fork the repository
- Create a feature branch (
git checkout -b new-feature
) - Commit your changes (
git commit -m "Added new feature"
) - Push to the branch (
git push origin new-feature
) - Create a Pull Request
MIT License
For questions and support, open an issue in the GitHub repository.