Adding ansible playbooks

This commit is contained in:
2025-05-23 07:32:23 -04:00
parent a596274ca6
commit a466ded673
21 changed files with 295 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
- 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