What is Ansible:
Ansible is an open source automation platform. It can help you with configuration management, application deployment and task automation.Ansible works by configuring client machines from an computer with Ansible components installed and configured.
How it works:
Ansible communicates over normal SSH channels in order to retrieve information from remote machines, issue commands, and copy files. Because of this, an Ansible system does not require any additional software to be installed on the client computers (agentless). Any server that has an SSH port exposed can be brought up and configured by Ansible.Environment:
OS: Ubuntu 16.04Install Ansible:
1. Add Ansible's PPA (Personal Package Archive) to your system.$ sudo apt-add-repository ppa:ansible/ansible Ansible is a radically simple IT automation platform that makes your applications and systems easier to deploy. Avoid writing scripts or custom code to deploy and update your applications— automate in a language that approaches plain English, using SSH, with no agents to install on remote systems. http://ansible.com/ More info: https://launchpad.net/~ansible/+archive/ubuntu/ansible Press [ENTER] to continue or ctrl-c to cancel adding it gpg: keyring `/tmp/tmpwg8d53c0/secring.gpg' created gpg: keyring `/tmp/tmpwg8d53c0/pubring.gpg' created gpg: requesting key 7BB9C367 from hkp server keyserver.ubuntu.com gpg: /tmp/tmpwg8d53c0/trustdb.gpg: trustdb created gpg: key 7BB9C367: public key "Launchpad PPA for Ansible, Inc." imported gpg: Total number processed: 1 gpg: imported: 1 (RSA: 1) OK
2. Refresh OS's package Index
$ sudo apt-get update
3. Install Ansible
$ sudo apt-get install ansible
That's it! You can verify its installation by:
$ ansible --version ansible 2.4.0.0 config file = /etc/ansible/ansible.cfg configured module search path = [u'/home/txu/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/dist-packages/ansible executable location = /usr/bin/ansible python version = 2.7.12 (default, Nov 19 2016, 06:48:10) [GCC 5.4.0 20160609]
No comments:
Post a Comment