install ansible the easiest way

Cara termudah menginstall ansible adalah mengcopy file dibawah ini ke sebuah file lalu eksekusi file

1. save this scripts to a file, sample name : google.ansible.sh


#----------- start code ------------
#!/bin/bash
sudo apt-get -y install python-pip python-dev
sudo pip install -U boto
sudo pip install -U https://github.com/ansible/ansible/archive/devel.zip
ansible --version
#----------- end code ------------

2. chmod +x to that file
~#sudo chmod +x google.ansible.sh

3. execute this file
~#sudo sh google.ansible.sh

Untuk pengguna centos 7 bisa menggunakan scripts dibawah ini

1. simpan code dibawah ini sebagai script bash : google.ansible.sh


#----------- start code ------------
#!/bin/bash
sudo yum -y install epel-release
sudo yum install -y gcc python-pip python-devel
sudo pip install -U boto
sudo pip install -U https://github.com/ansible/ansible/archive/devel.zip
ansible --version
#----------- end code ------------

2. ganti permisi file biar dapat di eksekusi

~#chmod +x ./google.ansible.sh

3. eksekusi file installasi

~#sh ./googe.ansible.sh

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s