This directory contains the Ansible playbooks and roles for provisioning the infrastructure. It is designed to set up and configure the necessary components, including Jenkins master and worker nodes.
Provisioning with Ansible automates the setup of the entire infrastructure, ensuring consistency and efficiency. It includes the configuration of Jenkins nodes and other necessary services across your infrastructure.
To provision your infrastructure with Ansible, execute the following commands:
-
List Ansible Inventory: Review the current Ansible inventory derived from AWS EC2.
ansible-inventory -i inventory/inventory_aws_ec2.yml --list
-
Execute the Playbook: Run the Ansible playbook to start the provisioning process.
ansible-playbook -i inventory/inventory_aws_ec2.yml playbooks/site.yml -e "jenkins_password=asdasdiytagsdjh123"
Use the public IP addresses displayed in the Ansible playbook output to access the Jenkins web interface and configure node communications. These IP addresses provide direct access to the Jenkins nodes for initial setup and further configuration tasks
Once Jenkins is up and running, you can:
- Configure Jenkins nodes and plugins as required.
- Set up your CI/CD pipelines.
- Integrate with other tools and services.
For infrastructure setup details, see Deployment.