How to use varianbles in ansible?

Vars A variable could be, for example: Variable names Ansible has certain restrictions on the format of variable names: In addition, you can create dictionaries with variables (in YAML format): SWITCH1: There are two ways to access variables in a dictionary: SWITCH1[‘IP’] SWITCH1.IP But when using the second option, there may be problems if the […]

Read More

What is ansible modules?

In this post I want to explain you about ansible modules. Along with the installation of ansible, a large number of modules (module library) are also created. The module library has about 200 modules available. Module it’s like extension for ansible. A module is usually responsible for its specific and small task. Modules can be […]

Read More

Ad Hoc commands in ansible

With ad-hoc command you can run some Ansible action from the command line. An example ad-hoc command: This option basically is used in cases where you need to check something, for example, the operation of the module. Or just perform some one-time action that does not need to be saved. Anyway, this is a simple […]

Read More