---
- hosts: "{{ target_hosts }}"
become: true
tasks:
- name: Install Apache2
ansible.builtin.package:
name: apache2
state: present