Ansible: Getting Started

From Glitchdata
Jump to navigation Jump to search

Two key files used in Ansible management. These are:

  • Host Inventory file
  • Playbook
  • Under the Hood


Global Host Inventory File

The file /etc/ansible/hosts helps define the servers relevant to the ansible installation See:

[[group]]
server1.com
server2.com


Running Basic Ansible Operations

Running basic Ansible operations....

$ansible all -m ping


Ansible Internals

  • Ansible basically loops through execution.
  • It may include variables before executing tasks.
  • However when ansible moves into task mode, using non-task oriented commands will fail.


Links