1
0
Fork 0
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
916 B
YAML

2 years ago
---
- name: Build and install ioquake3
hosts: all
tasks:
- name: Install build dependencies
community.general.xbps:
name:
- git
- gcc
- make
- pkg-config
- SDL2-devel
- libjpeg-turbo-devel
- libogg-devel
- libvorbis-devel
- name: Clone ioquake3 repository
git:
repo: 'https://github.com/ioquake/ioq3.git'
dest: '/opt/ioquake3'
- name: Build and install ioquake3
shell: |
cd /opt/ioquake3
make &&
cp -r /opt/ioquake3/build/release-linux-x86_64/* /opt/quake3/
- name: Copy game files
hosts: all
tasks:
- name: Copy game files
copy:
src: 'files/quake3/gamefiles/'
dest: '/opt/quake3/'
- name: Copy execution script
copy:
src: 'files/quake3/q3a.sh'
dest: '/usr/local/bin/q3a'
mode: 0766