mirror of
https://github.com/JockeTF/fimfarchive.git
synced 2024-11-23 05:47:59 +01:00
43 lines
880 B
YAML
43 lines
880 B
YAML
|
---
|
||
|
#
|
||
|
# Builds and installs OpenTracker.
|
||
|
#
|
||
|
|
||
|
- name: Clone OpenTracker
|
||
|
git:
|
||
|
repo: git://erdgeist.org/opentracker
|
||
|
dest: "{{ opentracker.repo }}"
|
||
|
force: yes
|
||
|
become: yes
|
||
|
become_user: "{{ opentracker.user }}"
|
||
|
register: result
|
||
|
|
||
|
- name: Build OpenTracker
|
||
|
make:
|
||
|
chdir: "{{ opentracker.repo }}"
|
||
|
target: opentracker
|
||
|
environment:
|
||
|
FEATURES: "-DWANT_ACCESSLIST_WHITE"
|
||
|
become: yes
|
||
|
become_user: "{{ opentracker.user }}"
|
||
|
when: result | changed
|
||
|
|
||
|
- name: Install OpenTracker
|
||
|
copy:
|
||
|
remote_src: yes
|
||
|
src: "{{ opentracker.repo }}/opentracker"
|
||
|
dest: /usr/local/bin/opentracker
|
||
|
mode: 0755
|
||
|
owner: root
|
||
|
group: root
|
||
|
notify: Restart OpenTracker
|
||
|
when: result | changed
|
||
|
|
||
|
- name: Clean OpenTracker
|
||
|
make:
|
||
|
chdir: "{{ opentracker.repo }}"
|
||
|
target: clean
|
||
|
become: yes
|
||
|
become_user: "{{ opentracker.user }}"
|
||
|
when: result | changed
|