Add external minecraft role

This commit is contained in:
Kris Lamoureux 2020-08-30 16:11:36 -04:00
parent 2fbf9925fa
commit 88cca40522
Signed by: kris
GPG Key ID: 3EDA9C3441EDA925
6 changed files with 33 additions and 0 deletions

1
Vagrantfile vendored
View File

@ -23,6 +23,7 @@ Vagrant.configure("2") do |config|
config.vm.provision "ansible" do |ansible| config.vm.provision "ansible" do |ansible|
ENV['ANSIBLE_ROLES_PATH'] = File.dirname(__FILE__) + "/roles" ENV['ANSIBLE_ROLES_PATH'] = File.dirname(__FILE__) + "/roles"
ansible.compatibility_mode = "2.0" ansible.compatibility_mode = "2.0"
ansible.galaxy_role_file = ENV['ANSIBLE_ROLES_PATH'] + "/requirements.yml"
ansible.playbook = "dev/" + ENV["PLAYBOOK"] + ".yml" ansible.playbook = "dev/" + ENV["PLAYBOOK"] + ".yml"
end end

1
dev/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
roles/

View File

@ -0,0 +1,6 @@
# base
allow_reboot: false
manage_network: false
# minecraft
minecraft_eula: true

8
dev/minecraft.yml Normal file
View File

@ -0,0 +1,8 @@
- name: Install Minecraft
hosts: all
become: true
vars_files:
- host_vars/minecraft.yml
roles:
- base
- minecraft

13
roles/.gitignore vendored Normal file
View File

@ -0,0 +1,13 @@
/*
!.gitignore
!requirements.yml
!base*/
!bitwarden*/
!docker*/
!gitea*/
!jenkins*/
!libvirt*/
!nextcloud*/
!prometheus*/
!traefik*/
!wordpress*/

4
roles/requirements.yml Normal file
View File

@ -0,0 +1,4 @@
- src: https://github.com/krislamo/ansible-minecraft
scm: git
version: master
name: minecraft