---
- name: Install nginx package
apt:
name: nginx
state: present
- name: Install certbot package
name: '{{ item }}'
with_items:
- certbot
- python3-certbot-nginx