blob: f35338f0b37dfef649dac8a88935204a325481a4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# This playbook install the linfo (http://linfo.sourceforge.net/) php
# application.
#
# Copyright (c) 2013 Fabian Affolter <fabian@affolter-engineering.ch>
#
# Licensed under CC BY 3.0. All rights reserved.
#
---
- name: download the linfo source tarball
get_url: url=http://sourceforge.net/projects/linfo/files/Linfo%20Stable%20Releases/linfo-$linfo_version.tar.gz
dest=/usr/share/webapps/linfo-$linfo_version.tar.gz
mode=0440
- name: unpack the source tarball
command: /bin/tar -xzf /usr/share/webapps/linfo-$linfo_version.tar.gz -C /usr/share/webapps/
- name: rename the source directory
command: /bin/mv /usr/share/webapps/linfo-$linfo_version /usr/share/webapps/linfo
- name: delete the archive
file: path=/usr/share/webapps/linfo-$linfo_version.tar.gz
state=absent
- name: copy the default config file
command: /bin/cp /usr/share/webapps/linfo/sample.config.inc.php /usr/share/webapps/linfo/config.inc.php
- name: set the permissions
file: path=/usr/share/webapps/
mode=0777
state=directory
- name: create a symlink to the webserver root
file: src=/usr/share/webapps/linfo/
dest=/var/www/localhost/htdocs/linfo
owner=root
group=root
state=link
|