Posts

Showing posts from March, 2026

Ansible_1

  Playbook In Ansible, a script is called a playbook.   A playbook describes which hosts to configure, and an ordered list of tasks to perform on those hosts.   The playbook can be execute by using the ansible-playbook command Ansible’s playbook syntax is built on top of YAML $ ansible-playbook <name>.yml Ansible will make SSH connections in parallel It will execute the first task on the list on all hosts simultaneously. eg:- 1st tasks   - name: Install nginx   apt: name=nginx Ansible will do the following: 1. Generate a Python script that installs the required package 2. Copy the script to host1, host2, and host3 3. Execute the script on host1, host2, and host3 4. Wait for the script to complete execution on all hosts Ansible will then move to the next task in the list, and go through these same four steps. It’s important to note the following: • Ansible runs each task in parallel across all hosts. • Ansible waits until all hosts have completed a task bef...

Ansible

Name Ansible It’s a science-fiction reference An ansible is a fictional communication device that can transfer information faster than the speed of light.   Ursula K. Le Guin invented the concept in her book Rocannon’s World, and other sci-fi authors have since borrowed the idea from Le Guin. Michael DeHaan took the name Ansible from the book Ender’s Game by Orson Scott Card. In that book, the ansible was used to control many remote ships at once, over vast distances. Think of it as a metaphor for controlling remote servers. Michael DeHaan :- Creator of Ansible software Ansible started as a simple side project in February of 2012 Configuration Management we are typically about writing some kind of state description for our servers, and then using a tool to enforce that the servers are, indeed, in that state: the right packages are installed, configuration files contain the expected values and have the expected permissions, the right services are running, and so on. Deployment They ...