рдореБрдЦреНрдп рдордЬрдХреБрд░рд╛рдХрдбреЗ рдЬрд╛
JobCannon
рд╕рд░реНрд╡ рдХреМрд╢рд▓реНрдпреЗ

Ansible Automation

тмв рд╢реНрд░реЗрдгреА 2рддрд╛рдВрддреНрд░рд┐рдХ
рдЙрдЪреНрдЪ
рдкрдЧрд╛рд░рд╛рд╡рд░реАрд▓ рдкрд░рд┐рдгрд╛рдо
5 рдорд╣рд┐рдиреЗ
рд╢рд┐рдХрдгреНрдпрд╛рд╕ рд▓рд╛рдЧрдгрд╛рд░рд╛ рд╡реЗрд│
рдордзреНрдпрдо
рдХрд╛рдард┐рдгреНрдп
2
рдХрд░рд┐рдЕрд░реНрд╕
рдПрдХрд╛ рджреГрд╖реНрдЯрд┐рдХреНрд╖реЗрдкрд╛рдд

Ansible is the leading open-source configuration management and orchestration platform: define infrastructure as code via YAML playbooks, execute across thousands of servers without agent installation, and manage full application deployments idempotently. Career path: Practitioner (basic playbooks, $95-125k) тЖТ Engineer (roles, Vault, Galaxy, $125-160k) тЖТ Architect (Tower/AWX, multi-cloud, $160-210k). Core concepts: playbooks, inventory, roles, handlers. Compare to Terraform (IaC), Chef/Puppet (agent-based), Kubernetes (orchestration).

Ansible Automation рдореНрд╣рдгрдЬреЗ рдХрд╛рдп

Agentless IT automation: configuration management, application deployment, orchestration. Simple YAML-based automation for servers, networks, cloud. Red Hat (IBM) product. Learning Curve: Medium (YAML + systems knowledge)

ЁЯФз рд╕рд╛рдзрдиреЗ рдЖрдгрд┐ рдкрд░рд┐рд╕рдВрд╕реНрдерд╛
Ansible CoreAnsible TowerAnsible AWXAnsible Content Collectionsansible-lintMoleculeAnsible GalaxyVagrantHashiCorp VaultJenkins

ЁЯУЛ рд╕реБрд░реВ рдХрд░рдгреНрдпрд╛рдкреВрд░реНрд╡реА

ЁЯТ░ рдкреНрд░рджреЗрд╢рд╛рдиреБрд╕рд╛рд░ рдкрдЧрд╛рд░

рдкреНрд░рджреЗрд╢рдЬреНрдпреБрдирд┐рдпрд░рдордзреНрдпрдорд╕реАрдирд┐рдпрд░
USA$100k$140k$190k
UK┬г55k┬г80k┬г115k
EUтВм60kтВм85kтВм125k
CANADAC$105kC$145kC$200k

ЁЯОп Ansible Automation рд╡рд╛рдкрд░рдгрд╛рд░реА рдХрд░рд┐рдЕрд░

тЪЦ рдпрд╛рдВрдЪреНрдпрд╛рд╢реА рддреБрд▓рдирд╛ рдХрд░рд╛

тЭУ FAQ

Ansible vs Terraform, when do I use each?
Ansible: configuration management, application deployment, orchestration. Iterative, mutable infrastructure. Terraform: infrastructure provisioning, immutable desired state, AWS/Azure/GCP resource management. Modern DevOps uses both: Terraform provisions instances, Ansible configures them. They complement, not compete.
How is Ansible agentless different?
Ansible connects via SSH (Linux) or WinRM (Windows), no agent to install, no background service running. Competitors (Puppet, Chef) install agents that phone home. Agentless = less operational overhead, easier onboarding, better security (no persistent agent). Trade-off: slightly slower for massive-scale ops (100k+ nodes).
What's idempotency and why does it matter?
Running a playbook twice = same result as running it once. If a package is installed, re-running doesn't reinstall. If a config file is correct, no change. Idempotency = safe automation; ops can re-run playbooks without breaking production. Ansible modules are idempotent by design.
Ansible Tower vs AWX vs Ansible Automation Platform, what's the difference?
AWX (open-source, free, community-supported): UI, RBAC, scheduling, webhooks. Tower (legacy, deprecated): commercial, replaced by AAP. Ansible Automation Platform (AAP, modern): Red Hat's commercial offering with support, advanced analytics, hub integration. For enterprises: AAP. For labs/small orgs: AWX. AWX is fine for most use cases.
How do I manage secrets in Ansible?
Ansible Vault encrypts sensitive data (passwords, API keys) in playbooks. Store vault password in `.vault_password` file or pass via `--vault-password-file`. For teams: use HashiCorp Vault integration. Never commit secrets to Git; use CI/CD to inject at runtime.
What's the difference between plays, tasks, handlers, and roles?
Play: collection of tasks targeting a host group. Task: single action (install package, restart service). Handler: task triggered by notify (only runs if something changed). Role: reusable, organized bundle of tasks, handlers, templates, variables. Roles = best practice for scaling.
Can Ansible manage cloud infrastructure like AWS?
Yes, via modules: aws_ec2, rds, s3, etc. Ansible provisioning < Terraform (Terraform is cloud-native). Use Ansible for post-deployment config, app setup. Use Terraform for resource provisioning. Together: Terraform spins up, Ansible configures.

рд╣реЗ рдХреМрд╢рд▓реНрдп рддреБрдордЪреНрдпрд╛рд╕рд╛рдареА рдпреЛрдЧреНрдп рдЖрд╣реЗ рдХрд╛, рдпрд╛рдЪреА рдЦрд╛рддреНрд░реА рдирд╛рд╣реА?

рдХрд░рд┐рдЕрд░ рдореЕрдЪ рдХрд░реВрди рдкрд╛рд╣рд╛ тАФ рдЖрдореНрд╣реА рдпреЛрдЧреНрдп рдорд╛рд░реНрдЧ рд╕реБрдЪрд╡реВ.

рдорд╛рдЭреНрдпрд╛рд╕рд╛рдареА рд╕рд░реНрд╡реЛрддреНрддрдо рдХреМрд╢рд▓реНрдпреЗ рд╢реЛрдзрд╛ тЖТ

рддреБрдордЪрд╛ рдЖрджрд░реНрд╢ рдХрд░рд┐рдЕрд░ рдорд╛рд░реНрдЧ рд╢реЛрдзрд╛

реи,релреирез рдХрд░рд┐рдЕрд░рдордзреНрдпреЗ рдХреМрд╢рд▓реНрдпрд╛рдВрд╡рд░ рдЖрдзрд╛рд░рд┐рдд рдЬреБрд│рдгреА. рдореЛрдлрдд, ~3 рдорд┐рдирд┐рдЯреЗ.

рдХрд░рд┐рдЕрд░ рдореЕрдЪ рдХрд░реВрди рдкрд╛рд╣рд╛ тАФ рдореЛрдлрдд тЖТ