-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvar.sh
More file actions
executable file
·30 lines (24 loc) · 973 Bytes
/
var.sh
File metadata and controls
executable file
·30 lines (24 loc) · 973 Bytes
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
echo "Sleeping for 30 Secoonds"
sleep 30
echo "Sleept for 30 Secoonds"
sudo apt -y update
sudo apt -y upgrade
sudo apt-add-repository --yes --update ppa:ansible/ansible
sudo apt -y install ansible
sudo apt install -y yamllint
mkdir addingThings
touch addingThings/nada.txt
touch /home/ubuntu/.ssh/sshd_config
chmod 700 /home/ubuntu/.ssh/sshd_config
cat << 'EOF' > /home/ubuntu/.ssh/sshd_config
ClientAliveInterval 120
ClientAliveCountMax 720
EOF
echo "this is my ansible-tf life" > addingThings/nada.txt
echo "[all]" "localhost ansible_connection=local" > hosts
#ansible-pull --accept-host-key -d /home/ubuntu/git --key-file=/home/ubuntu/aws_lajolla_public.pem -C HEAD -U 'git@github.com:marly10/keycode.git' -i hosts
#ansible 2.9.27
echo "The AnsiblevVersion i want ansible 2.9.27"
ansible --version
echo "Completed Provisioning"
ansible-pull -U https://github.com/marly10/keycode.git --key-file=/home/ubuntu/aws_lajolla_public.pem -C master file_creator.yml