test other version
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
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
This commit is contained in:
44
playbooks/site.yml
Normal file
44
playbooks/site.yml
Normal file
@@ -0,0 +1,44 @@
|
||||
---
|
||||
- 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 }}"
|
Reference in New Issue
Block a user