{"id":48987409,"url":"https://github.com/sagarkpanda/ansible_playground","last_synced_at":"2026-04-18T13:10:31.801Z","repository":{"id":172232311,"uuid":"649023541","full_name":"sagarkpanda/Ansible_playground","owner":"sagarkpanda","description":"Automate tasks using Ansible","archived":false,"fork":false,"pushed_at":"2023-07-31T10:27:10.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-04-07T11:22:57.857Z","etag":null,"topics":["ansible","ansible-playbook","devops","project"],"latest_commit_sha":null,"homepage":"https://sagarkrp.medium.com/automation-with-ansible-101-27f709f4f8a","language":"YAML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sagarkpanda.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-06-03T14:31:46.000Z","updated_at":"2024-02-10T08:22:18.000Z","dependencies_parsed_at":"2023-08-28T20:18:16.998Z","dependency_job_id":null,"html_url":"https://github.com/sagarkpanda/Ansible_playground","commit_stats":null,"previous_names":["sagarkrp/ansible_automation","sagarcodectrl/ansible_automation","sagarkpanda/ansible_playground"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sagarkpanda/Ansible_playground","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sagarkpanda%2FAnsible_playground","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sagarkpanda%2FAnsible_playground/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sagarkpanda%2FAnsible_playground/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sagarkpanda%2FAnsible_playground/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sagarkpanda","download_url":"https://codeload.github.com/sagarkpanda/Ansible_playground/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sagarkpanda%2FAnsible_playground/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31969987,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","ansible-playbook","devops","project"],"created_at":"2026-04-18T13:10:20.281Z","updated_at":"2026-04-18T13:10:31.787Z","avatar_url":"https://github.com/sagarkpanda.png","language":"YAML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Automation with Ansiable\n\u003cp align=\"center\"\u003e\n\u003cimg alt=\"Ansible\" width=\"270px\" src=\"https://raw.githubusercontent.com/devicons/devicon/master/icons/ansible/ansible-original.svg\" style=\"padding-right:10px;\" /\u003e \n\u003c/p\u003e\n\u003c/br\u003e\n\u003ch3\u003e \u003cstrong\u003e Read the detailed article on: \u003c/strong\u003e \u003c/h3\u003e \u003ca href = \"https://medium.com/@sagarkrp/automation-with-ansible-101-27f709f4f8a\" target =\"_blank\"\u003e \n \n\u003cpicture\u003e\n   \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://github.com/sagarkrp/sagarkrp/blob/main/images/Medium-white1x.png\" width=\"160px\" height=\"35px\"\u003e\n   \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"https://raw.githubusercontent.com/sagarkrp/sagarkrp/main/images/Medium-dark.svg\" width=\"160px\" height=\"35px\"\u003e \n   \u003cimg alt=\"Medium Alternative Theme.\" src=\"https://raw.githubusercontent.com/sagarkrp/sagarkrp/main/images/Medium-dark.svg\" width=\"160px\" height=\"35px\"\u003e\n\u003c/picture\u003e \u003c/a\u003e\n\nIntroduction:\n-------------\nAnsible is an open source configuration management utility. It can automate and standardize the configuration of remote hosts and virtual machines. We can perform application installation, system update and many such operations.\n\nWhy use Ansible:\n---------------\nAnsible is very handy when it comes to installation of software on large numbers of machines. But why ansible when we can use Chef or Puppet.\n\n- Ansible uses YAML scripts which is very easy to understand. (While others use Ruby and a specific DSL)\n- Ansible is agent less. It uses SSH which is already present in all the machines. So we dont need to install ansible on all the destination machines. We install it on only one machine which we call Master Node. (Others need agents to be installed on the destination machines)\n- Ansible is push based system, meaning whatever we specify on our script on the master node, and run command or execute a playbook, the controller node initiates the execution and pushes the necessary tasks and configurations to the managed nodes over SSH. Each managed node runs the tasks locally based on the received instructions.\n\n\u003ch1\u003e Terminologies used in Ansible: \u003c/h1\u003e\n\nPlaybooks:\n----------\n- Playbooks are written in YAML format and define the desired state of a system. It contains of a set of tasks and configurations that Ansible executes on target hosts. Playbooks provide a high-level abstraction and allow you to describe complex automation workflows.\n\nInventory: \n-----------\nThe inventory file in Ansible defines the hosts or managed nodes on which tasks are executed. It can be a static file listing hostnames or IP addresses, or a dynamic inventory script that fetches host information from external sources like cloud providers or databases.\n\nModules:\n--------\nAnsible provides a wide range of built-in modules that abstract common system operations such as package installation, file management, service management, user management, and more. Modules are used in playbooks to perform specific tasks on target hosts.\nTasks: Tasks are the individual steps within a playbook that Ansible executes sequentially. Each task maps to a module and defines the desired state or action to be performed on the target hosts.\n\nRoles: \n------\nRoles are a way to organize and encapsulate related tasks, handlers, and files into reusable units. They promote code reuse and allow for a modular approach to configuring systems. Roles can be shared and used across multiple playbooks.\n\nInventory Groups:\n-------------\nAnsible allows you to organize hosts into groups within the inventory file. Grouping hosts enables you to target specific subsets of hosts and apply different configurations or tasks based on their roles or characteristics.\n\nAnsible Vault:\n-----------\nAnsible Vault provides encryption and decryption capabilities to protect sensitive data such as passwords, API keys, or certificates. It allows you to securely store and use confidential information within your playbooks.\n\nAnsible Galaxy:\n--------------\nAnsible Galaxy is a platform for sharing and discovering Ansible roles and collections created by the community. It provides a vast collection of pre-written roles that can be easily integrated into your playbooks.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsagarkpanda%2Fansible_playground","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsagarkpanda%2Fansible_playground","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsagarkpanda%2Fansible_playground/lists"}