diff --git a/ansible/phiax.nl/testicle/galaxy.yml b/ansible/phiax.nl/testicle/galaxy.yaml similarity index 100% rename from ansible/phiax.nl/testicle/galaxy.yml rename to ansible/phiax.nl/testicle/galaxy.yaml diff --git a/ansible/phiax.nl/testicle/playbooks/install_octoprint.yml b/ansible/phiax.nl/testicle/playbooks/install_octoprint.yaml similarity index 100% rename from ansible/phiax.nl/testicle/playbooks/install_octoprint.yml rename to ansible/phiax.nl/testicle/playbooks/install_octoprint.yaml diff --git a/ansible/phiax.nl/testicle/playbooks/install_raspberry.yml b/ansible/phiax.nl/testicle/playbooks/install_raspberry.yaml similarity index 100% rename from ansible/phiax.nl/testicle/playbooks/install_raspberry.yml rename to ansible/phiax.nl/testicle/playbooks/install_raspberry.yaml diff --git a/ansible/phiax.nl/testicle/playbooks/requirements.yml b/ansible/phiax.nl/testicle/playbooks/requirements.yaml similarity index 100% rename from ansible/phiax.nl/testicle/playbooks/requirements.yml rename to ansible/phiax.nl/testicle/playbooks/requirements.yaml diff --git a/ansible/phiax.nl/testicle/playbooks/switches/mikrotik_backup_config.yml b/ansible/phiax.nl/testicle/playbooks/switches/mikrotik_backup_config.yaml similarity index 100% rename from ansible/phiax.nl/testicle/playbooks/switches/mikrotik_backup_config.yml rename to ansible/phiax.nl/testicle/playbooks/switches/mikrotik_backup_config.yaml diff --git a/ansible/phiax.nl/testicle/roles/helpers/create_user/meta/main.yml b/ansible/phiax.nl/testicle/roles/helpers/create_user/meta/main.yaml similarity index 100% rename from ansible/phiax.nl/testicle/roles/helpers/create_user/meta/main.yml rename to ansible/phiax.nl/testicle/roles/helpers/create_user/meta/main.yaml diff --git a/ansible/phiax.nl/testicle/roles/helpers/create_user/tasks/main.yml b/ansible/phiax.nl/testicle/roles/helpers/create_user/tasks/main.yaml similarity index 100% rename from ansible/phiax.nl/testicle/roles/helpers/create_user/tasks/main.yml rename to ansible/phiax.nl/testicle/roles/helpers/create_user/tasks/main.yaml diff --git a/ansible/phiax.nl/testicle/roles/helpers/hostname/tasks/main.yml b/ansible/phiax.nl/testicle/roles/helpers/hostname/tasks/main.yaml similarity index 100% rename from ansible/phiax.nl/testicle/roles/helpers/hostname/tasks/main.yml rename to ansible/phiax.nl/testicle/roles/helpers/hostname/tasks/main.yaml diff --git a/ansible/phiax.nl/testicle/roles/helpers/static_ip/meta/main.yml b/ansible/phiax.nl/testicle/roles/helpers/static_ip/meta/main.yaml similarity index 100% rename from ansible/phiax.nl/testicle/roles/helpers/static_ip/meta/main.yml rename to ansible/phiax.nl/testicle/roles/helpers/static_ip/meta/main.yaml diff --git a/ansible/phiax.nl/testicle/roles/helpers/static_ip/tasks/main.yml b/ansible/phiax.nl/testicle/roles/helpers/static_ip/tasks/main.yaml similarity index 100% rename from ansible/phiax.nl/testicle/roles/helpers/static_ip/tasks/main.yml rename to ansible/phiax.nl/testicle/roles/helpers/static_ip/tasks/main.yaml diff --git a/ansible/phiax.nl/testicle/roles/helpers/user/tasks/main.yml b/ansible/phiax.nl/testicle/roles/helpers/user/tasks/main.yaml similarity index 100% rename from ansible/phiax.nl/testicle/roles/helpers/user/tasks/main.yml rename to ansible/phiax.nl/testicle/roles/helpers/user/tasks/main.yaml diff --git a/ansible/phiax.nl/testicle/roles/helpers/user/vars/main/defaults.yml b/ansible/phiax.nl/testicle/roles/helpers/user/vars/main/defaults.yaml similarity index 100% rename from ansible/phiax.nl/testicle/roles/helpers/user/vars/main/defaults.yml rename to ansible/phiax.nl/testicle/roles/helpers/user/vars/main/defaults.yaml diff --git a/ansible/phiax.nl/testicle/roles/services/nginx/handlers/main.yml b/ansible/phiax.nl/testicle/roles/services/nginx/handlers/main.yaml similarity index 100% rename from ansible/phiax.nl/testicle/roles/services/nginx/handlers/main.yml rename to ansible/phiax.nl/testicle/roles/services/nginx/handlers/main.yaml diff --git a/ansible/phiax.nl/testicle/roles/services/nginx/tasks/main.yml b/ansible/phiax.nl/testicle/roles/services/nginx/tasks/main.yaml similarity index 100% rename from ansible/phiax.nl/testicle/roles/services/nginx/tasks/main.yml rename to ansible/phiax.nl/testicle/roles/services/nginx/tasks/main.yaml diff --git a/ansible/phiax.nl/testicle/roles/services/nginx/vars/main/defaults.yml b/ansible/phiax.nl/testicle/roles/services/nginx/vars/main/defaults.yaml similarity index 100% rename from ansible/phiax.nl/testicle/roles/services/nginx/vars/main/defaults.yml rename to ansible/phiax.nl/testicle/roles/services/nginx/vars/main/defaults.yaml diff --git a/ansible/phiax.nl/testicle/roles/services/octoprint/meta/main.yml b/ansible/phiax.nl/testicle/roles/services/octoprint/meta/main.yaml similarity index 100% rename from ansible/phiax.nl/testicle/roles/services/octoprint/meta/main.yml rename to ansible/phiax.nl/testicle/roles/services/octoprint/meta/main.yaml diff --git a/ansible/phiax.nl/testicle/roles/services/octoprint/tasks/haproxy.yml b/ansible/phiax.nl/testicle/roles/services/octoprint/tasks/haproxy.yaml similarity index 100% rename from ansible/phiax.nl/testicle/roles/services/octoprint/tasks/haproxy.yml rename to ansible/phiax.nl/testicle/roles/services/octoprint/tasks/haproxy.yaml diff --git a/ansible/phiax.nl/testicle/roles/services/octoprint/tasks/main.yml b/ansible/phiax.nl/testicle/roles/services/octoprint/tasks/main.yaml similarity index 100% rename from ansible/phiax.nl/testicle/roles/services/octoprint/tasks/main.yml rename to ansible/phiax.nl/testicle/roles/services/octoprint/tasks/main.yaml diff --git a/ansible/phiax.nl/testicle/roles/services/octoprint/tasks/webcam.yml b/ansible/phiax.nl/testicle/roles/services/octoprint/tasks/webcam.yaml similarity index 100% rename from ansible/phiax.nl/testicle/roles/services/octoprint/tasks/webcam.yml rename to ansible/phiax.nl/testicle/roles/services/octoprint/tasks/webcam.yaml diff --git a/ansible/phiax.nl/testicle/roles/system/updates/main.yaml b/ansible/phiax.nl/testicle/roles/system/updates/main.yaml new file mode 100644 index 0000000..afdb5f1 --- /dev/null +++ b/ansible/phiax.nl/testicle/roles/system/updates/main.yaml @@ -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)) diff --git a/docker/counter-strike-1.6.yaml b/docker/counter-strike-1.6.yaml new file mode 100644 index 0000000..7e1c1b2 --- /dev/null +++ b/docker/counter-strike-1.6.yaml @@ -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 \ No newline at end of file