- name: Setting up reverse proxy and load balancer hosts: hosts become: true tasks: - name: Install Certbot and Nginx block: - name: Installing Python3 and PIP ansible.builtin.apt: state: present update_cache: yes pkg: - nginx - python3-pip - python3 - python3-dev - python3-venv - libaugeas-dev - gcc - name: Installing Certbot ansible.builtin.pip: name: - certbot - certbox-nginx