Files
startusingansible/ansible.sh
Guillem Hernandez Sola 44ae04d2d8 Ansible.sh comments
2025-11-17 09:45:08 +01:00

9 lines
350 B
Bash

# Script to install Ansible on a Ubuntu system
apt-get update
# Install required packages
apt install software-properties-common -y
# Add Ansible PPA and install Ansible
apt-add-repository ppa:ansible/ansible
apt-get install ansible net-tools -y
# Add vagrant user to sudoers
echo "vagrant ALL=(ALL) NOPASSWD:ALL" | sudo tee /etc/sudoers.d/vagrant