feat: webserver role

This commit is contained in:
Ditmar Visser
2025-06-03 16:05:31 +00:00
parent 4ab1bc6d63
commit bb0f2858fb
3 changed files with 29 additions and 0 deletions

4
handlers/main.yml Normal file
View File

@@ -0,0 +1,4 @@
- name: Restart apache
service:
name: apache2
state: restarted

12
meta/main.yml Normal file
View File

@@ -0,0 +1,12 @@
galaxy_info:
role_name: webserver
author: ditmarvisser
description: Instals Apache, PHP, en PHP-MySQL
license: MIT
min_ansible_version: "2.9"
platforms:
- name: Ubuntu
versions:
- noble
dependencies: []

13
tasks/main.yml Normal file
View File

@@ -0,0 +1,13 @@
- name: Install Apache
apt:
name: apache2
state: present
update_cache: yes
notify: restart apache
- name: Install PHP
apt:
name:
- php
- php-mysql
state: present