fimfarchive/operations/opentracker/tasks/make.yml

43 lines
883 B
YAML
Raw Normal View History

2017-05-28 00:06:41 +02:00
---
#
# 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 }}"
2018-06-01 20:57:02 +02:00
when: result is changed
2017-05-28 00:06:41 +02:00
- 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
2018-06-01 20:57:02 +02:00
when: result is changed
2017-05-28 00:06:41 +02:00
- name: Clean OpenTracker
make:
chdir: "{{ opentracker.repo }}"
target: clean
become: yes
become_user: "{{ opentracker.user }}"
2018-06-01 20:57:02 +02:00
when: result is changed