Ravindra BagaleCourses & study guides मराठी

Ravi Sir's Cards › DevOps

Chapter 11: Ansible Introduction: मराठी Cards

English cards · Chapter उघडा

उजळणी (Revision) cards

Ansible का: अनेक servers साठी एक playbook. Servers एकेक configure करणं हळू आणि ते एकमेकांपासून वेगळे होतात.
उजळणी (Revision) card 1 of 18: Ansible का: अनेक servers साठी एक playbook · PNG download करा · Card page उघडा

Lesson: 11.1 Why Ansible — one playbook for many servers

Inventory: कोणाला configure करतोय?. कोणत्या servers ना हात लावायचा ते Ansible ला माहीत हवं.
उजळणी (Revision) card 2 of 18: Inventory: कोणाला configure करतोय? · PNG download करा · Card page उघडा

Lesson: 11.2 Inventory — who are we configuring?

Modules आणि ad-hoc commands. प्रत्येक कामाला पूर्ण playbook लागत नाही.
उजळणी (Revision) card 3 of 18: Modules आणि ad-hoc commands · PNG download करा · Card page उघडा

Lesson: 11.3 Modules and ad-hoc commands

Idempotence: दोनदा चालवा, safe result. Setup परत चालवल्याने काही तुटायला किंवा दुप्पट व्हायला नको.
उजळणी (Revision) card 4 of 18: Idempotence: दोनदा चालवा, safe result · PNG download करा · Card page उघडा

Lesson: 11.4 Idempotence — run twice, safe result

Playbook: badge-api साठी nginx welcome. Playbook setup guide ला code बनवतो.
उजळणी (Revision) card 5 of 18: Playbook: badge-api साठी nginx welcome · PNG download करा · Card page उघडा

Lesson: 11.5 Playbook — Nginx welcome for badge API

Labs सोप्या करायला ansible.cfg. दर run ला तेच flags टाइप करणं कंटाळवाणं आणि चुका होणारं.
उजळणी (Revision) card 6 of 18: Labs सोप्या करायला ansible.cfg · PNG download करा · Card page उघडा

Lesson: 11.5b ansible.cfg for friendlier labs

Handlers: गरज असेल तेव्हाच restart. प्रत्येक run ला restart केल्याने उगाच खंड पडतो.
उजळणी (Revision) card 7 of 18: Handlers: गरज असेल तेव्हाच restart · PNG download करा · Card page उघडा

Lesson: 11.6 Handlers — restart only when needed

Role चा सोपा folder layout. एक प्रचंड playbook वाचता येत नाही.
उजळणी (Revision) card 8 of 18: Role चा सोपा folder layout · PNG download करा · Card page उघडा

Lesson: 11.7 Simple role folder layout

Variables, Vault ओळख आणि secrets. Git मधले साधे passwords leak होतात.
उजळणी (Revision) card 9 of 18: Variables, Vault ओळख आणि secrets · PNG download करा · Card page उघडा

Lesson: 11.8 Variables, vault awareness and secrets

Ansible vs shell scripts: विचारपूर्वक निवडा. चुकीचं tool साध्या गोष्टी कठीण करतं.
उजळणी (Revision) card 10 of 18: Ansible vs shell scripts: विचारपूर्वक निवडा · PNG download करा · Card page उघडा

Lesson: 11.9 Ansible vs shell scripts — choose deliberately

Check mode आणि diff. थेट prod वर चालवणं धोकादायक.
उजळणी (Revision) card 11 of 18: Check mode आणि diff · PNG download करा · Card page उघडा

Lesson: 11.9b Check mode and diff

Tags: playbook चा भाग चालवा. एका छोट्या बदलासाठी लांब playbook चालवणं हळू.
उजळणी (Revision) card 12 of 18: Tags: playbook चा भाग चालवा · PNG download करा · Card page उघडा

Lesson: 11.9c Tags — run part of a playbook

Dynamic inventory (ओळख). Cloud servers चे IPs बदलतात; हाताने लिहिलेल्या lists जुन्या होतात.
उजळणी (Revision) card 13 of 18: Dynamic inventory (ओळख) · PNG download करा · Card page उघडा

Lesson: 11.9d Dynamic inventory (awareness)

Troubleshooting table. थोड्या errors मुळे बहुतेक Ansible त्रास.
उजळणी (Revision) card 14 of 18: Troubleshooting table · PNG download करा · Card page उघडा

Lesson: 11.10 Troubleshooting table

limit आणि serial (ओळख). सगळे servers एकदम बदलले तर पूर्ण site बंद पडू शकते.
उजळणी (Revision) card 15 of 18: limit आणि serial (ओळख) · PNG download करा · Card page उघडा

Lesson: 11.10b Limit and serial (awareness)

Ansible labs साठी Git layout. गोंधळलेल्या repos मध्ये काय कुठे चालतं ते कळत नाही.
उजळणी (Revision) card 16 of 18: Ansible labs साठी Git layout · PNG download करा · Card page उघडा

Lesson: 11.11 Git layout for Ansible labs

Lab: playbook nginx welcome install करतो. एक पूर्ण run पूर्ण flow सिद्ध करतो.
उजळणी (Revision) card 17 of 18: Lab: playbook nginx welcome install करतो · PNG download करा · Card page उघडा

Lesson: 11.12 Lab — playbook installs Nginx welcome

हा chapter संपल्यावर चांगलं म्हणजे काय. स्पष्ट शेवटची रेषा काय शिकलात ते दाखवते.
उजळणी (Revision) card 18 of 18: हा chapter संपल्यावर चांगलं म्हणजे काय · PNG download करा · Card page उघडा

Lesson: 11.13 What good looks like after this chapter

मुलाखत (Interview) cards

Ansible म्हणजे काय आणि agentless का? YAML playbooks मधून servers configure करणारं tool; साधं SSH वापरतं, म्हणून targets वर Python शिवाय काही लागत नाही.
मुलाखत (Interview) card 1 of 18: Ansible म्हणजे काय आणि agentless का? · PNG download करा · Card page उघडा

Lesson: 11.1 Why Ansible — one playbook for many servers

Ansible inventory म्हणजे काय? Hosts आणि groups ची list असलेली file (किंवा script), user आणि IP सारख्या connection variables सह.
मुलाखत (Interview) card 2 of 18: Ansible inventory म्हणजे काय? · PNG download करा · Card page उघडा

Lesson: 11.2 Inventory — who are we configuring?

Ansible module म्हणजे काय? apt, copy किंवा service सारखा परत वापरता येणारा unit जो एक काम करतो आणि changed किंवा ok सांगतो.
मुलाखत (Interview) card 3 of 18: Ansible module म्हणजे काय? · PNG download करा · Card page उघडा

Lesson: 11.3 Modules and ad-hoc commands

Ansible मध्ये idempotent म्हणजे काय? Playbook परत चालवला तरी system तसाच राहतो; tasks ok सांगतात, changed नाही.
मुलाखत (Interview) card 4 of 18: Ansible मध्ये idempotent म्हणजे काय? · PNG download करा · Card page उघडा

Lesson: 11.4 Idempotence — run twice, safe result

nginx install करणारा छोटा playbook लिहा. become सह hosts: web वर play, tasks: apt install nginx, config template, service started आणि enabled.
मुलाखत (Interview) card 5 of 18: nginx install करणारा छोटा playbook लिहा. · PNG download करा · Card page उघडा

Lesson: 11.5 Playbook — Nginx welcome for badge API

ansible.cfg कशासाठी? Inventory path, remote user, roles path आणि SSH options सारखे project defaults, म्हणजे commands छोट्या राहतात.
मुलाखत (Interview) card 6 of 18: ansible.cfg कशासाठी? · PNG download करा · Card page उघडा

Lesson: 11.5b ansible.cfg for friendlier labs

Ansible handlers म्हणजे काय? बदल झालेल्या task ने notify केल्यावरच चालणारे tasks, बहुतेक service restart साठी, play च्या शेवटी एकदा चालतात.
मुलाखत (Interview) card 7 of 18: Ansible handlers म्हणजे काय? · PNG download करा · Card page उघडा

Lesson: 11.6 Handlers — restart only when needed

Ansible role म्हणजे काय? एका component साठी ठराविक folder layout (tasks, handlers, templates, defaults) असलेलं परत वापरता येणारं package.
मुलाखत (Interview) card 8 of 18: Ansible role म्हणजे काय? · PNG download करा · Card page उघडा

Lesson: 11.7 Simple role folder layout

Ansible साठी secrets कसे ठेवता? ansible-vault ने encrypt करा (किंवा secret manager मधून घ्या) आणि no_log ने output लपवा.
मुलाखत (Interview) card 9 of 18: Ansible साठी secrets कसे ठेवता? · PNG download करा · Card page उघडा

Lesson: 11.8 Variables, vault awareness and secrets

Bash ऐवजी Ansible कधी निवडाल? अनेक servers configure करताना, idempotent reruns, inventory groups, आणि review साठी वाचनीय YAML हवं असताना.
मुलाखत (Interview) card 10 of 18: Bash ऐवजी Ansible कधी निवडाल? · PNG download करा · Card page उघडा

Lesson: 11.9 Ansible vs shell scripts — choose deliberately

Ansible बदल preview कसे करता? --check (dry run) आणि नेमके बदल बघायला --diff ने चालवा; review करा, मग खरा run.
मुलाखत (Interview) card 11 of 18: Ansible बदल preview कसे करता? · PNG download करा · Card page उघडा

Lesson: 11.9b Check mode and diff

Ansible tags कशासाठी? Playbook मधले फक्त काही tasks --tags किंवा --skip-tags ने चालवायला किंवा skip करायला.
मुलाखत (Interview) card 12 of 18: Ansible tags कशासाठी? · PNG download करा · Card page उघडा

Lesson: 11.9c Tags — run part of a playbook

Static vs dynamic inventory? Static: file मध्ये लिहिलेले hosts. Dynamic: run वेळी cloud API किंवा CMDB मधून बनवलेले.
मुलाखत (Interview) card 13 of 18: Static vs dynamic inventory? · PNG download करा · Card page उघडा

Lesson: 11.9d Dynamic inventory (awareness)

Host UNREACHABLE दाखवतो. काय check करता? त्याच user आणि key ने हाताने SSH होतं का, IP/hostname बरोबर आहे का, आणि firewall port 22 चालू ठेवतो का.
मुलाखत (Interview) card 14 of 18: Host UNREACHABLE दाखवतो. काय check करता? · PNG download करा · Card page उघडा

Lesson: 11.10 Troubleshooting table

Ansible ने बदल हळूहळू कसा आणता? serial (उदा. 2 किंवा 25%) set करा म्हणजे hosts batches मध्ये update होतात, आणि errors ला थांबायला max_fail_percentage.
मुलाखत (Interview) card 15 of 18: Ansible ने बदल हळूहळू कसा आणता? · PNG download करा · Card page उघडा

Lesson: 11.10b Limit and serial (awareness)

Ansible repo ची रचना कशी करता? ansible.cfg, group_vars सह environment नुसार inventories/, roles/, आणि site.yml सारखे top-level playbooks.
मुलाखत (Interview) card 16 of 18: Ansible repo ची रचना कशी करता? · PNG download करा · Card page उघडा

Lesson: 11.11 Git layout for Ansible labs

तुमचा playbook चालतो आणि idempotent आहे हे दाखवा. चालवा, page curl करा, परत चालवा आणि recap मध्ये changed=0 दाखवा.
मुलाखत (Interview) card 17 of 18: तुमचा playbook चालतो आणि idempotent आहे हे दाखवा. · PNG download करा · Card page उघडा

Lesson: 11.12 Lab — playbook installs Nginx welcome

आज कोणती Ansible skills दाखवू शकता? Inventory, playbooks, handlers, roles, vault, check mode, आणि idempotent rerun.
मुलाखत (Interview) card 18 of 18: आज कोणती Ansible skills दाखवू शकता? · PNG download करा · Card page उघडा

Lesson: 11.13 What good looks like after this chapter

तुलना (Comparison) cards

Ansible vs Bash scripts. Bash script: क्रमाने चालणाऱ्या commands ची list.Ansible: servers कसे दिसावेत ते सांगणारं YAML; फरक असेल ते fix करतं.
तुलना (Comparison) card 1 of 3: Ansible vs Bash scripts · PNG download करा · Card page उघडा

Lesson: 11.9 Ansible vs shell scripts — choose deliberately

Handler vs task. Task: नेहमी क्रमाने चालणारा step.Handler: task बदल सांगून notify करतो तेव्हाच चालणारा step.
तुलना (Comparison) card 2 of 3: Handler vs task · PNG download करा · Card page उघडा

Lesson: 11.6 Handlers — restart only when needed

Static vs dynamic inventory. Static inventory: host names किंवा IPs टाइप केलेली file.Dynamic inventory: cloud ला सध्याचे servers विचारणारा plugin.
तुलना (Comparison) card 3 of 3: Static vs dynamic inventory · PNG download करा · Card page उघडा

Lesson: 11.9d Dynamic inventory (awareness)