Add external minecraft role
This commit is contained in:
parent
2fbf9925fa
commit
88cca40522
1
Vagrantfile
vendored
1
Vagrantfile
vendored
@ -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
1
dev/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
roles/
|
6
dev/host_vars/minecraft.yml
Normal file
6
dev/host_vars/minecraft.yml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
# base
|
||||||
|
allow_reboot: false
|
||||||
|
manage_network: false
|
||||||
|
|
||||||
|
# minecraft
|
||||||
|
minecraft_eula: true
|
8
dev/minecraft.yml
Normal file
8
dev/minecraft.yml
Normal 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
13
roles/.gitignore
vendored
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
/*
|
||||||
|
!.gitignore
|
||||||
|
!requirements.yml
|
||||||
|
!base*/
|
||||||
|
!bitwarden*/
|
||||||
|
!docker*/
|
||||||
|
!gitea*/
|
||||||
|
!jenkins*/
|
||||||
|
!libvirt*/
|
||||||
|
!nextcloud*/
|
||||||
|
!prometheus*/
|
||||||
|
!traefik*/
|
||||||
|
!wordpress*/
|
4
roles/requirements.yml
Normal file
4
roles/requirements.yml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
- src: https://github.com/krislamo/ansible-minecraft
|
||||||
|
scm: git
|
||||||
|
version: master
|
||||||
|
name: minecraft
|
Loading…
Reference in New Issue
Block a user