This repository contains an Ansible playbook designed to set up essential packages and configurations on new servers.
The setup_server_packages.yml playbook automates the installation of fundamental tools and copies a custom tmux configuration file to the user's home directory.
- Installs Packages: Ensures
tmux,vim, andgitare installed and up-to-date on the target servers. - Configures Tmux: Copies the
tmux.conffile from this repository to~/.tmux.confon the target servers, providing a consistent tmux environment.
-
Clone the Repository:
git clone https://github.com/afaranha/AI-Test.git cd AI-Test -
Prepare your Inventory: Ensure your Ansible inventory file (
hosts.inior another specified inventory) lists the servers where you want to run this playbook. -
Run the Playbook: Execute the playbook using the
ansible-playbookcommand:ansible-playbook -i hosts.ini setup_server_packages.yml
(Note: The
-i hosts.inipart is only necessary if your inventory file is not in the default location or named differently.)
setup_server_packages.yml: The main Ansible playbook.hosts.ini: An example Ansible inventory file.tmux.conf: The tmux configuration file to be copied.new_server_requirements.txt: Additional server requirements.README.md: This README file.
For a quick setup on a fresh Linux server (Ubuntu/Debian or Fedora), you can use the setup_ai_test.sh script. This script will install Git and Ansible, clone this repository, and then run the setup_server_packages.yml playbook on your localhost.
Step-by-step instructions:
-
Download the script: Use
curlto download thesetup_ai_test.shscript directly from the repository:curl -o setup_ai_test.sh https://raw.githubusercontent.com/afaranha/AI-Test/main/setup_ai_test.sh
-
Make the script executable: Grant execute permissions to the downloaded script:
chmod +x setup_ai_test.sh
-
Run the script: Execute the script. This will perform the installation of Git and Ansible, clone the repository, and run the playbook:
./setup_ai_test.sh