Senior
What did you write in Ansible? Did you use ready-made playbooks or write your own?
sobes.tech AI
Answer from AI
In Ansible, I wrote both ready-made playbooks and created my own from scratch, depending on the task. Ready-made playbooks were used for standard operations — installing software, configuring services, deploying applications. For more specific scenarios, I wrote custom playbooks and roles to automate unique processes, such as integration with internal APIs, complex configuration logic, or dynamic inventory formation.
An example of my own playbook for installing and starting nginx:
- hosts: webservers
become: yes
tasks:
- name: Install nginx
apt:
name: nginx
state: present
update_cache: yes
- name: Start and enable nginx
systemd:
name: nginx
state: started
enabled: yes
Thus, I combined the use of ready-made solutions and custom developments for flexibility and efficiency in automation.