DevOps Classroom notes 06/Mar/2024

Parallelism in Ansible

  • Ansible execution happens parallely by default in 5 nodes task by task
  • This number can be changed by using fork ansible-playbook -f 10 ....
  • Refer Here for ansible execution strategies

Ansible Vault

  • Ansible Vault can protect sensitive information Refer Here
  • It is recommended to use password-file approach
  • Watch classroom video for instructions

Ansible Configurations

Ansible Dynamic inventory

  • To fetch the list of nodes we can use dynamic inventory
  • Ansible has inventory plugins
  • To the ansible we can pass any script as dynamic inventory which returns a json file
{
    "_meta": {
        "hostvars": { }
    },

    "instances": {
        "hosts": ["localhost"]
    }
}

Exercise

  • How is ansible used in CI/CD Pipeline
  • Ansible usage in CI/CD Pipeline
  • Create an ansible playbook
    • to install nopcommerce
    • to install mysql
Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a comment

Turn on JavaScript to leave a comment.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Social Media Icons Powered by Acurax Web Design Company
Exit mobile version
%%footer%%