feat: webserver role
This commit is contained in:
4
handlers/main.yml
Normal file
4
handlers/main.yml
Normal file
@@ -0,0 +1,4 @@
|
||||
- name: Restart apache
|
||||
service:
|
||||
name: apache2
|
||||
state: restarted
|
12
meta/main.yml
Normal file
12
meta/main.yml
Normal 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
13
tasks/main.yml
Normal 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
|
Reference in New Issue
Block a user