From e7623b6c7769814d72f5618346636e61fe0b81e1 Mon Sep 17 00:00:00 2001 From: Salt Date: Wed, 26 Feb 2020 18:43:51 -0600 Subject: [PATCH] Add handlers for apache, defaults for Minecraft --- ec2.yml | 1 - roles/apache-php/handlers/main.yml | 8 ++++++++ roles/minecraft/defaults/main.yml | 4 ++++ 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 roles/apache-php/handlers/main.yml create mode 100644 roles/minecraft/defaults/main.yml diff --git a/ec2.yml b/ec2.yml index 4d2a0b5..1f1b7dd 100644 --- a/ec2.yml +++ b/ec2.yml @@ -10,7 +10,6 @@ mcname: "botaniapack-1" mczip: "https://www.assburgers.club/files/botaniapack-1.zip" mcforge: "1.10.2-12.18.3.2511" - mcport: "25565" mcmotd: "First time on Assburgers edition" roles: - minecraft diff --git a/roles/apache-php/handlers/main.yml b/roles/apache-php/handlers/main.yml new file mode 100644 index 0000000..5320cb5 --- /dev/null +++ b/roles/apache-php/handlers/main.yml @@ -0,0 +1,8 @@ +#!/usr/bin/ansible-playbook +# vim:ft=ansible: +--- +- name: restart apache + service: + name: apache + state: restarted + become: yes diff --git a/roles/minecraft/defaults/main.yml b/roles/minecraft/defaults/main.yml new file mode 100644 index 0000000..4389c16 --- /dev/null +++ b/roles/minecraft/defaults/main.yml @@ -0,0 +1,4 @@ +# vim:ft=ansible: +mcname: "default" +mcport: "25565" +mcmotd: "An Ansible-deployed Minecraft server"