commit 11ea71a7eb11fed9bb5fb94a6f3be5310f34b947 Author: Caleb Fultz Date: Mon Jul 12 20:29:44 2021 -0400 first commit diff --git a/README.md b/README.md new file mode 100644 index 0000000..d6c9af3 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# zandronum-rpi-ansible diff --git a/inventory.ini b/inventory.ini new file mode 100644 index 0000000..1dd6a9e --- /dev/null +++ b/inventory.ini @@ -0,0 +1,2 @@ +[raspberrypi] +127.0.0.1 diff --git a/playbook.yml b/playbook.yml new file mode 100644 index 0000000..424f01e --- /dev/null +++ b/playbook.yml @@ -0,0 +1,55 @@ +--- +- name: + + hosts: raspberrypi + remote_user: pi + + vars: + workdir: $HOME/zandronum-rpi/ + repo_url: https://github.com/doomjoshuaboy/zandronum-rpi.git + + tasks: + - name: Update repositories cache + apt: + name: python-apt + update_cache: yes + cache_valid_time: 3600 + + - name: Install necessary packages + apt: + pkg: + - build-essential + - zlib1g-dev + - libsdl1.2-dev + - libjpeg-dev + - nasm + - tar + - libbz2-dev + - libgtk2.0-dev + - cmake + - git + - libfluidsynth-dev + - libgl1-mesa-dev + - libssl-dev + + - name: Git clone zandronum-rip + git: + repo: "{{ repo_url }}" + dest: "{{ workdir }}" + update: yes + + - name: Make buildserver directory in zandronum-rpi directory + file: + path: "{{workdir}}/buildserver" + state: directory + + - name: Compile cmake files zandronum-rpi + command: "cmake -DCMAKE_BUILD_TYPE=Release -DSERVERONLY=ON -DNO_ASM=1 .." + args: + chdir: "{{workdir}}/buildserver" + + - name: Compile zandronum + command: "make -j 4" + args: + chdir: "{{workdir}}/buildserver" +