IT/Software/Ansible

From msgwiki
< IT‎ | Software
Revision as of 19:54, 2 May 2024 by Stefan (talk | contribs) (Created page with "Ansible Ansible is an open source IT automation engine that automates provisioning, configuration management, application deployment, orchestration, and many other IT processes. It is free to use, and the project benefits from the experience and intelligence of its thousands of contributors. https://www.ansible.com/ Some pros: - reproducible - fast deployment - scalable Important files: inventory.yml This file contains a list of your hosts to which playbooks c...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Access restrictions were established for this page. If you see this message, you have no access to this page.

Ansible

Ansible is an open source IT automation engine that automates provisioning, configuration management, application deployment, orchestration, and many other IT processes. It is free to use, and the project benefits from the experience and intelligence of its thousands of contributors. https://www.ansible.com/

Some pros: - reproducible - fast deployment - scalable

Important files: inventory.yml This file contains a list of your hosts to which playbooks can refer to.

playbook.yml Contains the tasks/steps that shoud be executed.

See also IaC/IaaC https://en.wikipedia.org/wiki/Infrastructure_as_code

Install Ansible

- https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html

Linux

- `sudo apt install ansible`

Windows

- install wsl first - https://learn.microsoft.com/en-us/windows/wsl/install - `wsl --install`

Execute Playbooks

- example with a playbook named playbook-example.yml - `ansible-playbook -i inventory.yml playbook-example.yml -K` - `-K` if become/sudo is needed