Junior — Middle
Tell about your projects where you used Ansible for automation tasks.
sobes.tech AI
Answer from AI
In one of my projects, I used Ansible to automate the deployment of a web application on multiple servers. With an Ansible playbook, I described the installation of necessary packages, configuration file setup, and service startup. This allowed for quick and error-free environment updates and infrastructure scaling.
Here's an example of a simple playbook for installing Nginx:
- hosts: webservers
become: yes
tasks:
- name: Install Nginx
apt:
name: nginx
state: present
- name: Start and enable the Nginx service
systemd:
name: nginx
state: started
enabled: yes
I also used Ansible for configuration management, package updates, and executing commands on remote hosts, which significantly sped up support and deployment processes.