Some checks failed
Ansible Minecraft CI/CD Pipeline / Ansible Lint Check (push) Successful in 58s
Ansible Minecraft CI/CD Pipeline / Project Structure Validation (push) Failing after 3s
Ansible Minecraft CI/CD Pipeline / Security Scan (push) Successful in 4s
Ansible Minecraft CI/CD Pipeline / Deploy to Staging (push) Has been skipped
Ansible Minecraft CI/CD Pipeline / Deploy to Production (push) Has been skipped
Ansible Minecraft CI/CD Pipeline / Backup System Check (push) Has been skipped
44 lines
1.2 KiB
YAML
44 lines
1.2 KiB
YAML
---
|
|
- name: Complete Minecraft Spigot Server Setup
|
|
hosts: minecraft_servers
|
|
become: true
|
|
gather_facts: true
|
|
|
|
pre_tasks:
|
|
- name: Display target information
|
|
ansible.builtin.debug:
|
|
msg:
|
|
- "Target host: {{ inventory_hostname }}"
|
|
- "Environment: {{ environment }}"
|
|
- "Minecraft version: {{ minecraft_version }}"
|
|
|
|
roles:
|
|
- role: 01-server_hardening
|
|
tags: ['hardening', 'security']
|
|
|
|
- role: 02-installation-java
|
|
tags: ['java', 'dependencies']
|
|
|
|
- role: 03-installation-minecraft
|
|
tags: ['minecraft', 'installation']
|
|
|
|
- role: 04-backups
|
|
tags: ['backups', 'maintenance']
|
|
|
|
- role: 05-update
|
|
tags: ['update', 'maintenance']
|
|
|
|
post_tasks:
|
|
- name: Final server status check
|
|
ansible.builtin.systemd:
|
|
name: minecraft
|
|
state: started
|
|
register: final_status
|
|
|
|
- name: Display installation summary
|
|
ansible.builtin.debug:
|
|
msg:
|
|
- "Minecraft Spigot Server installation completed successfully"
|
|
- "Server status: {{ final_status.status.ActiveState }}"
|
|
- "Server directory: {{ minecraft_server_dir }}"
|
|
- "Version: {{ minecraft_version }}" |