Ansible StrategiesAnsible strategy defines how a playbook is executed in ansible. --- # sample ansible playbook (strategies) - name: Deploy a web application hosts: server1 tasks: - name: Install dependencies #-----<Some Code>----- - name: Install M...4 min read·devopswithcj.comFeb 10, 2023
Ansible Handlers, Conditions, and LoopsA handler is exactly the same as a task, but it will run when called by another task OR Handlers are just like regular tasks in an ansible playbook but are only run if the task conta...3 min read·devopswithcj.comFeb 10, 2023
How to handle long-running tasks in Ansible/ Ansible Asynchronous Actions and PollingBy default, Ansible runs tasks synchronously holding the connections to the remote node open until the action is completed3 min read·devopswithcj.comFeb 8, 2023
Ansible ModulesAnsible works by connecting to your nodes and pushing out small programs, called modules. Ansible modules are categorized into various groups.4 min read·devopswithcj.comFeb 6, 2023
Variables in AnsibleVariables are used to store values that can be later used in the playbook. Host variable We will use our default inventory file - /etc/ansible/hosts.6 min read·devopswithcj.comFeb 5, 2023