Explain different modules in ansible.
Answer / Deepanshu Sharma
Ansible modules are reusable, standalone scripts that perform a specific task. They can be used individually or combined together to create playbooks. Here are some common Ansible modules:n1. User Module: Manages system users and groups.n2. File Module: Manages files on the target host.n3. Package Module: Installs, updates, or removes packages based on the package manager of the target host.n4. Service Module: Manages services/daemons on Unix-based systems.n5. Yum Module: Specific for RedHat-based systems to manage packages.n6. Apt Module: Specific for Debian-based systems to manage packages.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is ci/cd?
Does ansible support aws?
What is ansible and what makes it stand out from the rest of the configuration management tools?
Explain what are playbooks in ansible? Explain with some examples.
How to interpolate variables or dynamic variable names?
What are ad-hoc commands? Give an example.
Suppose you’re using ansible to configure the production environment and your playbook uses an encrypted file. Encrypted files prompt the user to enter passwords. But since ansible is used for automation, can this process be automated?
What are the different components of ansible?
Can you write a simple playbook to install nginx on a host machine?
How do I see all the inventory vars defined for my host?
Explain the concept behind infrastructure as code (iac).
What are playbooks in ansible?