Sobes.tech
Middle

What is your experience in independent playbook development?

sobes.tech AI

Answer from AI

More than 3 years. Developed playbooks for:

  • Installing and configuring web servers (Nginx, Apache).
  • Managing databases (PostgreSQL, MySQL, MongoDB).
  • Deploying applications (.NET, Python, Node.js).
  • Configuring CI/CD pipelines (GitLab CI, Jenkins).
  • Updating operating systems and installing packages.
  • Container orchestration (Docker Swarm).

Actively used modules yum, apt, service, copy, template, shell, command, file, lineinfile, replace. Used roles to organize playbooks and ensure their reusability. Worked with Ansible Vault for secret management. Tested playbooks locally with Docker and remotely.

Example of a part of a playbook for installing Nginx:

- name: Install Nginx web server
  hosts: webservers
  become: true # Run with sudo rights

  tasks:
    - name: Install Nginx package
      yum: # Or apt for Debian/Ubuntu
        name: nginx
        state: present

    - name: Ensure Nginx service is running and enabled
      service:
        name: nginx
        state: started
        enabled: yes

    - name: Copy custom Nginx configuration file
      copy:
        src: files/nginx.conf # Local path to the file
        dest: /etc/nginx/nginx.conf # Remote path

    - name: Restart Nginx service to apply configuration
      service:
        name: nginx
        state: restarted
What is your experience in independent playbook… - sobes.tech