-
Notifications
You must be signed in to change notification settings - Fork 0
/
InstallAnsible.sh
34 lines (27 loc) · 986 Bytes
/
InstallAnsible.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install python -y
sudo apt install software-properties-common
sudo apt-add-repository --yes --update ppa:ansible/ansible
sudo apt-get install ansible -y
sudo mkdir docker
sudo mkdir docker/group_vars
sudo mv /tmp/docker-install.yml /home/ubuntu/docker/docker-install.yml
sudo mv /tmp/hosts /home/ubuntu/docker/hosts
###################
# Export all vars / NOT DELETE
#export servers_logstash
###################
# Run next script
#/tmp/elasticsearch.sh
#########################################
######## bennu_jobs_sh #############
sudo mkdir /home/ubuntu/bennu_jobs_sh
sudo mv /tmp/Dockerfile /home/ubuntu/bennu_jobs_sh/Dockerfile
sudo mkdir /opt/jobs
sudo mkdir /opt/jobs/sh
sudo mv /tmp/entrypoint.sh /home/ubuntu/bennu_jobs_sh/entrypoint.sh
######## bennu_jobs_missing #############
sudo mkdir /home/ubuntu/bennu_jobs_missing
sudo mv /tmp/Dockerfile-2 /home/ubuntu/bennu_jobs_missing/Dockerfile