diff --git a/test.yaml b/test.yaml index 4538de2..d9c501a 100644 --- a/test.yaml +++ b/test.yaml @@ -1,7 +1,8 @@ --- -- hosts: my_servers +- hosts: "{{ target_hosts }}" become: true - task: - - name: Print OS info + tasks: + - name: Install Apache2 ansible.builtin.package: - name: apache2 \ No newline at end of file + name: apache2 + state: present \ No newline at end of file