Ansible Configuration Files

Feb 23, 2024
Ansible Configuration Files

Introduction

Thank you for clicking through to my arcticle. I've been a DevOps engineer for 2 years in dev-team of 7 engineers.

My name is MINSEOK, LEE, but I use Unchaptered as an alias on the interenet. So, you can call me anythings "MINSEOK, LEE" or "Unchaptered" to ask something.


 

Topic

Learn about the main configuration files and options in Ansible.

Prerequisites

  1. What is the Ansible?

  2. How to configure practice environment of Ansible?

  3. What is the Ansible Core?

  4. Ansible with PUTTY

Configuration Files

  1. /etc/ansible/ansible.cf

    The cfg file includes execution data to run ansible>

  2. /etc/ansible/hosts
    The file includes ansible hosts data.

Options

  • -i (--inventory-file) : Files for hosts to be effected.

  • -m (--module-name) : Selected module

  • -k (--ask-pass) : Set to ask for a password

  • -K (--ask-become-pass) : Change privileges to admin

  • --list-hosts : List-up which hosts are effected.

Ansible's ping is actually different from Shell ping.
Ansible's ping is python built-in module, not the shell ping.

Share article

Unchaptered