Switch all extensions to .yaml for consistency

This commit is contained in:
Frank "PHiAX" Weggelaar 2026-01-06 20:07:48 +01:00
parent 47ee9a381f
commit 5088bb4038
21 changed files with 65 additions and 0 deletions

View file

@ -0,0 +1,40 @@
---
- name: Update APT-based systems and upgrade packages
hosts: all
become: true
gather_facts: true
vars:
apt_update_cache_valid_time: 3600 # seconds; set to 0 to always update
upgrade_type: "full-upgrade" # options: "upgrade" or "full-upgrade"
autoremove: true
autoclean: true
reboot_if_required: true
tasks:
- name: Ensure APT cache is up to date
ansible.builtin.apt:
update_cache: yes
cache_valid_time: "{{ apt_update_cache_valid_time }}"
- name: Upgrade packages
ansible.builtin.apt:
upgrade: "{{ upgrade_type }}"
register: upgrade_result
- name: Autoremove unused packages
ansible.builtin.apt:
autoremove: yes
when: autoremove
- name: Autoclean apt cache
ansible.builtin.apt:
autoclean: yes
when: autoclean
- name: Reboot if required (controlled)
ansible.builtin.reboot:
reboot_timeout: 300
when:
- reboot_if_required
- (upgrade_result is defined) and (upgrade_result.changed | default(false))

View file

@ -0,0 +1,25 @@
#################################################################
# #
# Description: Counter-Strike 1.6 Multiplayer Server #
# ReferenceURL: https://github.com/febLey/counter-strike_server #
# #
#################################################################
services:
counter-strike:
container_name: counter-strike
image: febley/counter-strike_server:latest
restart: always
environment:
- PORT=27015
- MAP=de_dust2
- MAXPLAYERS=16
- SV_LAN=0
ports:
- 27015:27015/udp
- 27015:27015
volumes:
- /opt/cs16-data/banned.cfg:/hlds/cstrike/banned.cfg
- /opt/cs16-data/listip.cfg:/hlds/cstrike/listip.cfg
- /opt/cs16-data/server.cfg:/hlds/cstrike/server.cfg
- /opt/cs16-data/mapcycle.txt:/hlds/cstrike/mapcycle.txt