Introduction to Ansible

Introduction to Ansible


Learn about Ansible Characteristics and How Ansible for College and Puppet, and see some of the technical techniques for managing the structure and automation for workflow.

Ansible Investigate your projects quickly, without problems and at a lower cost.Try Semaphore free
Intelligence is a general tool that can be used to manage the design or management of the work. Building management is a "infrastructure" such as a code that describes objects, p. packages and types must be installed in the system, or defects must run. Employment activation can be the provision of infrastructure for the implementation of the program.
This article starts with a general description of the attributes, an explanation of how Ansible is with College or Puppet, and technical techniques for managing the structure and management of the job. This article will give you an idea of ​​what can be done in Ansilla and a great theme to continue education.

Features and overview

Intelligence is written in Python and uses SSH to carry out different orders for machines. No help from the agents, making it very easy to start. All you need is SSH and Python installed on similar machines. Ansible uses the YML "games book" to mark a host club (from "engexin") roles that are well defined. The evidence is used to tell Ansible how to design or change things, Ansible is causing the necessary changes. For example, you can run a "server build" booklet which installs Nginx and connects to any machine to work.
The "Records" list is a list of active or active (for example, if you use EC2) machines with associated signs and other metrics (eg, the user to connect to the SSH port). List of games that are "played". A "game" announces machines to carry out "activities". Activities use modules of Ansible to perform individual work. Ansible has modules to install packets, create files, customer management, depending on essential providers and much more. There are hundreds of different parts and new modules are added to each type. It is important to understand that issue. Here is an example of a work that represents the Ansus puzzle game:

1.Promote web service infrastructure (first "game")
  1.  Run by the environment (en inventory machines)
  2.  Make the following: ("homework")
  •  Create a new IP address,
  • Create new EC2-related IP addresses, and
  • Include at least EC2 for example.

2. Post on the web server ("second play")
  1. Try at all times in the web
  2. Make the following: ("homework")
  • Install Nginx,
  • Follow the latest GitHub code,
  • post it to Nginx to serve the code,
  • Open Nginx if necessary,
  • Make an application test to ensure that the work is done, and
  • Send Directive Notice.

Notice how this book combines different tools and what needs to be done. We will do the real booklet as we move ahead. You can also check the official introductory version of the book. Let's focus on how Ansible is best suited for Fish and Puppet.

Ansible,Chef,and Puppet

Chef and Puppet are two automation devices. All three can be used to solve similar problems with similar shapes. There are two differences between Ansible and Chef / Puppet. Both Kuder and Puppet are both a representative of them. Cylinder / Puppet machines handle a representative. The agent checks the controller to see the changes occurring. This does not require SSH, but needs infrastructure to manage the server / server. Positive logic means that it is easy to start and work with small stocks. However, this may be a problem with hundreds of machines. In this case, it is not possible to pull and choose. The confirmation also applies to the SSH to connect the machines, so the distribution of the key is another consideration.
Chemicals and Puppets use a specific language to describe what to do. The light really uses the pure Ruby method. Puppet has made a completely new DSL. If you already know YAML, then you're ready to start writing books.There is a sharp contrast between these three devices. We will not continue to spend more time on disputes.  
 Using Ansible uses YML to describe a business,
  • Chemicals use a marginal code that describes the work,
  • The child uses regular DSL to describe the work,
  • Column / doll is a presentation and
  • Precision is SSH and push-based.
Finally, these three tools can be used to solve the same problems associated with different techniques. The best equipment for your work depends on your requirements and team.

Equipment management

Are piton fragments that value boolean stories. It also displays variables that produce facts. Facts are information about remote systems (collection of a collection: truth). Examples include kernel version, number of lights, partial information, memory size, or Linux distribution. Possible_distribution is a real change. It is used directly from a Linux-based process. In this section, we assume that "management planning" deals with the development of the state's existing state. Common activities are:
  • installing packages,
  • creating files,
  • Managing file system permissions,
  • hetting environmental variables,
  • restoration of care / services,
  • Update the bargain code and
  •  Management of vegetation protection regulations.

The option can do everything and more. Let's look at the first example of using the nginx installation manual. Sports books are YML files and a list of sports and activities. All games in the same league begin with the same - define the first game.

# Always available
hosts: localhost
# Execute commands directly instead of SSH
connection: local
# Tasks: Now, what to do with this work
Tasks:
#The media will print this name when you start the player
- name: Install nginx
# Now register the module for this game. Module defines
# what to do
apt:
status: present # This package must be installed
name: nginx
cache_valid_time: 18000 # 5 hours in seconds
# Use sudo
Realization ...
Remember different versions and substances. Intellectuals know that if an individual was already expecting or changing something. We can start the game story again so that we can see what happens. All this time is normal.


Comments

Popular posts from this blog

Introduction to Ansible - DevOps in 2018

Important Topic of Terminology in DevOps

6 Compelling Business Benefits of DevOps In 2018