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 […]
Reset Root Superuser Password in Centos 7 or 8
Sometimes it happens that system administrators forget the superuser password or, for example, a server which there is no information. In these cases, we need to figure out what kind of server it is and what service is running on it. But how to get into the system if we do not have a password? […]
Playbooks basics in ansible
A playbook (script file) is a file that describes the actions to be performed on a group of hosts. Inside the playbook: play is a set of tasks to be performed for a group of hosts task is a specific task. The task contains at least: – description (task name can be omitted, but it […]
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 […]
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 […]
What is ansible? Terminology, inventory.
Works without installing an agent on managed hosts Uses SSH to connect to managed hosts Performs changes using Python modules that run on managed hosts Can perform actions locally on the management host Uses YAML to describe scenarios Contains many modules (their number is constantly growing) Easy to write your own modules Terminology Ansible Control […]
How to use systemctl and systemd in linux
With the systemd subsystem came the systemctl command. It allows you to manage the main Linux processes. It is cheat sheet of the most used commands. General Syntax Without options, systemctl lists running services, mount points, devices, and other units. Cheat sheet on frequently used systemctl commands How to view status service: Start the service: […]
Update Netbox IPAM
We check for compliance with the following commands: Download and unpack the latest version: Next, the local_requirements.txt, configuration.py and ldap_config.py files to the folder with the new version: Copy the downloaded media files (if any): Copy the custom scripts and reports that have been created: If you followed the original installation guide to set up […]
How to install Netbox IPAM
Netbox is a free and powerful IP Address Management (IPAM) and Data Center Infrastructure Management (DCIM) tool. It is used to store information about your networks, virtual machines, inventory, and many other devices. It was originally developed by the DigitalOcean engineering team. This tool is written on the Django Python platform and uses a PostgreSQL […]