This Ansible playbook automates the installation of Nexus on target machines. Nexus is a popular platform for developing, shipping, and running applications inside containers. This playbook simplifies the process of setting up Nexus, ensuring consistency across your infrastructure.
This Ansible playbook simplifies the process of installing Nexus on target machines. Nexus provides a consistent environment for applications by packaging them in containers. This playbook uses Ansible roles to automate the installation steps, making it easy to manage Nexus installations across your infrastructure.
Before running this playbook, ensure you have the following prerequisites:
- Ansible installed on the machine where you'll run the playbook.
- SSH access to the target machines.
- A valid inventory file that lists the target machines where you want to install Nexus.
-
Clone this repository:
git clone https://github.com/mohamedAhmed97/ansible-Nexus-install.git
-
Change into the project directory:
cd ansible-Nexus-install
-
Create or update your Ansible inventory file with the target machine(s) where you want to install Nexus (see Example Inventory File).
-
Run the playbook using the
ansible-playbook
command (see Running the Playbook).
Here's an example inventory file (inventory.yml
) that lists the target machines:
[Nexus_ec2_server]
192.168.154.221
[Nexus_ec2_server:vars]
ansible_ssh_private_key_file=~/.ssh/ansible-servers.pem
ansible_user=ubuntu
Ensure you replace yourusername
and the IP addresses with your actual values.
Use the ansible-playbook
command to run the playbook and install Nexus on the target machines. Here's the command:
ansible-playbook -i ansilbe/hosts ansilbe/Nexus-playbook.yaml
Replace ansilbe/hosts
with your inventory file if it has a different name.