--- # Ensure certbot is installed. - name: Server | Software | Certbot | FreeBSD ansible.builtin.package: name: - py38-certbot - py38-certbot-nginx state: present when: ansible_system == "FreeBSD" - name: Server | Software | Certbot | Apt ansible.builtin.package: name: - certbot - python3-certbot-nginx state: present when: ansible_pkg_mgr == "apt"