Add OneLab Helm chart, Argo CD Application, and GitOps values for k3s
Made-with: Cursor
This commit is contained in:
22
resources/scripts/ubuntu/install_ansible.sh
Normal file
22
resources/scripts/ubuntu/install_ansible.sh
Normal file
@@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Install Dependencies
|
||||
sudo apt update
|
||||
sudo apt install software-properties-common
|
||||
|
||||
# Install Ansible
|
||||
sudo add-apt-repository --yes --update ppa:ansible/ansible
|
||||
sudo apt update
|
||||
sudo apt install ansible
|
||||
|
||||
# Create the ansible log file
|
||||
sudo touch /var/log/ansible.log
|
||||
|
||||
# Provide permissions for ansible log file
|
||||
sudo chmod 666 /var/log/ansible.log
|
||||
|
||||
# Update Ansible hosts file for local connection
|
||||
sudo sed -i '$ a localhost ansible_connection=local' /etc/ansible/hosts
|
||||
|
||||
# Update Ansible configuration file with logs path
|
||||
sudo sed -i '13 a log_path = /var/log/ansible.log' /etc/ansible/ansible.cfg
|
||||
Reference in New Issue
Block a user