Junior — Middle
Have you been responsible for creating or maintaining automated deployment or configuration scripts using playbooks?
sobes.tech AI
Answer from AI
Yes, I have created and maintained automated deployment scripts using Ansible playbooks. For example, I wrote a playbook for installing and configuring a web server, where I described steps for installing packages, copying configuration files, and starting services. This allowed for quick and repeatable environment deployment without manual intervention.
Here's a simple playbook example for installing nginx:
- hosts: webservers
become: yes
tasks:
- name: Install nginx
apt:
name: nginx
state: present
- name: Start and enable nginx
service:
name: nginx
state: started
enabled: yes