Added bootstrap
This commit is contained in:
28
bootstrap.sh
Normal file
28
bootstrap.sh
Normal 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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user