Files
updates/samples/playbooks/service.yaml
T
2025-05-23 07:32:23 -04:00

16 lines
312 B
YAML

- hosts: ansible
remote_user: root
become: yes
tasks:
- name: Install Apache
apt:
name: apache2
state: present
- name: Restart Apache
service:
name: apache2
state: restarted
- name: Remove Apache
apt:
name: apache2
state: absent