Added bootstrap

This commit is contained in:
2024-07-19 13:31:39 +02:00
parent ff2751e207
commit 7f70b0379f
2 changed files with 29 additions and 1 deletions

28
bootstrap.sh Normal file
View File

@@ -0,0 +1,28 @@
#!/bin/sh
read -p "Enter root password" password
# Update APT repos
sudo apt update
# Make sure python is installed
sudo apt install python3 python3-pip
# Install pipx
sudo apt install pipx
pipx ensurepath
# Install Ansible
pipx install --include-deps ansible
# Install passlib (for ssh password connection)
sudo apt install python3-passlib
pipx inject ansible passlib
# Make sure git is installed
sudo apt install git
# Clone ansible_playbooks repo
git clone https://git.athelas-conseils.fr/Stage/ansible_playbooks.git
ansible-playbook ansible-playbook ansible_playbooks/tasks/full_setup.yml -i ansible_playbooks/inventory.ini

View File

@@ -8,7 +8,7 @@
# this machine's public IP, then replace ":80" below with your
# domain name.
poc.athelas.fr:8081 {
poc.athelas.fr {
# Another common task is to set up a reverse proxy:
reverse_proxy localhost:8080