Files
startusingansible/ansible.sh
2026-05-27 11:41:50 +02:00

6 lines
245 B
Bash

# Script to install Ansible on a Ubuntu system
apt-get update
# Add Ansible repository and install 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