Mode:
Duration:
1
Coding works best on desktop or with an external keyboard.
Coding works best on desktop or with an external keyboard.
A simple Ansible playbook to install and start Nginx on a remote server.
# ansible/demo.yml
- name: Install and start Nginx
hosts: webservers
become: yes
tasks:
- name: Install Nginx
apt:
name: nginx
state: present
- name: Start Nginx service
service:
name: nginx
state: started
enabled: yesAnsible is an open-source automation tool for IT orchestration, configuration management, application deployment, and infrastructure as code. It uses simple YAML-based playbooks to automate complex IT workflows.
Origin & Creator
Created by Michael DeHaan in 2012 and later maintained by Red Hat, to simplify configuration management and orchestration compared to Puppet/Chef.
Industrial Note
Ansible is widely used in DevOps, cloud automation, network automation, hybrid cloud orchestration, and IT compliance in enterprise and industrial IT environments.