configuration management

Ansible Playbook Advance Features

Ansible Playbook Advance Features Hello Everyone Welcome to CloudAffaire and this is Debjeet. In the last blog post, we have discussed roles in Ansible. https://cloudaffaire.com/roles-in-ansible/ In this blog post, we will discuss some advance features of Ansible Playbook. Ansible Playbook Advance Features: Privilege Escalation in playbook: Ansible allows you to ‘become’ another user, different from the user that logged into the machine (remote user). This is done using existing privilege escalation tools such as…

Comments Off on Ansible Playbook Advance Features

Roles In Ansible

Roles in Ansible Hello Everyone Welcome to CloudAffaire and this is Debjeet. In the last blog post, we have discussed modules in Ansible. https://cloudaffaire.com/modules-in-ansible/ In this blog post, we will discuss modules in Ansible. Roles in Ansible: Roles are ways of automatically loading certain vars_files, tasks, and handlers based on a known file structure. Grouping content by roles also allows easy sharing of roles with other users. Roles expect files to be in certain…

Comments Off on Roles In Ansible

Modules In Ansible

Modules in Ansible Hello Everyone Welcome to CloudAffaire and this is Debjeet. In the last blog post, we have discussed encryption in Ansible. https://cloudaffaire.com/encryption-in-ansible/ In this blog post, we will discuss modules in Ansible. Ansible Modules: Modules are discrete units of code that can be used from the command line or in a playbook task. Modules take some arguments, generally, in the form of key=value, perform some actions and return some result. Whatever actions…

Comments Off on Modules In Ansible

Encryption In Ansible

Encryption in Ansible Hello Everyone Welcome to CloudAffaire and this is Debjeet. In the last blog post, we have discussed tests in Ansible. https://cloudaffaire.com/tests-in-ansible/ In this blog post, we will discuss encryption in Ansible. Ansible Vault: Ansible Vault is a feature of ansible that allows you to keep sensitive data such as passwords or keys in encrypted files, rather than as plaintext in playbooks or roles. These vault files can then be distributed or…

Comments Off on Encryption In Ansible

Tests In Ansible

Tests in Ansible Hello Everyone Welcome to CloudAffaire and this is Debjeet. In the last blog post, we have discussed functions (filters) in Ansible. https://cloudaffaire.com/functions-in-ansible/ In this blog post, we will discuss tests in Ansible. Tests in Ansible: In the last blog post, we have discussed filters in Ansible. You can extend the functionality of filters by using tests. Tests in Jinja are a way of evaluating template expressions and returning True or False.…

Comments Off on Tests In Ansible

Functions In Ansible

Functions in Ansible Hello Everyone Welcome to CloudAffaire and this is Debjeet. In the last blog post, we have discussed statements in Ansible. https://cloudaffaire.com/statements-in-ansible/ In this blog post, we will discuss statements in Ansible. What is a function? A function is a unit of code that is often defined by its role within a greater code structure. Specifically, a function contains a unit of code that works on various inputs, many of which are…

1 Comment

Statements In Ansible

Statements in Ansible Hello Everyone Welcome to CloudAffaire and this is Debjeet. In the last blog post, we have discussed operators in Ansible. https://cloudaffaire.com/operators-in-ansible/ In this blog post, we will discuss statements in Ansible. What is a statement? In computer programming, a statement is a syntactic unit of an imperative programming language that expresses some action to be carried out. A statement can be used as conditional or iterative. As already referenced in the…

Comments Off on Statements In Ansible

Operators In Ansible

Operators in Ansible Hello Everyone Welcome to CloudAffaire and this is Debjeet. In the last blog post, we have discussed variables in Ansible. https://cloudaffaire.com/variables-in-ansible/ In this blog post, we will discuss operators in Ansible. What is operator? Programming languages typically support a set of operators: constructs which behave generally like functions, but which differ syntactically or semantically from usual functions. Common simple examples include arithmetic (addition with +), comparison (with >), and logical operations…

Comments Off on Operators In Ansible

Variables In Ansible

Variables in Ansible Hello Everyone Welcome to CloudAffaire and this is Debjeet. In the last blog post, we have discussed Ansible Playbook components. https://cloudaffaire.com/ansible-playbook-components/ In this blog post, we will discuss variables in Ansible. Variables are a way to pass or store values. Like any other systems, Ansible also support variables. You can use variables in different ways and in different places in Ansible. Ansible variables always begin with a letter ([A-Za-z]), and can…

Comments Off on Variables In Ansible

Ansible Playbook Components

Ansible Playbook Components Hello Everyone Welcome to CloudAffaire and this is Debjeet. In the last blog post, we have discussed Ansible Playbook. https://cloudaffaire.com/ansible-playbook/ In this blog post, we will discuss Ansible Playbook components. Playbook Components: Hosts: Using hosts, you can choose the target infrastructure where you want to execute the playbook. Hosts are defined in your inventory file and called in your playbook using hosts directive. You can use multiple hosts in the same…

Comments Off on Ansible Playbook Components