2016-03-05 21:46:54 +07:00
|
|
|
---
|
|
|
|
|
2016-03-06 00:34:04 +07:00
|
|
|
- name: APT | Install web apps
|
2017-10-03 22:57:35 +07:00
|
|
|
pkgng:
|
|
|
|
pkg: "{{ item }}"
|
|
|
|
state: present
|
2016-03-06 00:34:04 +07:00
|
|
|
with_items:
|
|
|
|
- nagios
|
|
|
|
- backuppc
|
|
|
|
|
|
|
|
- name: COMMAND | Activate backuppc config
|
|
|
|
command: >
|
|
|
|
cp /usr/local/etc/backuppc/config.pl.sample /usr/local/etc/backuppc/config.pl
|
|
|
|
creates=/usr/local/etc/backuppc/config.pl
|
|
|
|
|
|
|
|
- name: FILE | Fix backuppc permissions
|
2017-10-03 22:57:35 +07:00
|
|
|
file:
|
|
|
|
path: /usr/local/etc/backuppc/config.pl
|
|
|
|
owner: backuppc
|
|
|
|
group: backuppc
|
2016-03-06 00:34:04 +07:00
|
|
|
|
|
|
|
- name: FILE | Fix fcgiwrap permission
|
2017-10-03 22:57:35 +07:00
|
|
|
file:
|
|
|
|
path: "{{ nginx_fcgiwrap_sock }}"
|
|
|
|
mode: 0640
|
|
|
|
owner: "{{ nginx_user }}"
|
|
|
|
group: "{{ nginx_user }}"
|
2016-03-06 00:34:04 +07:00
|
|
|
|
|
|
|
#
|
|
|
|
# We don't manage BackupPC on FreeBSD... too dirty. :/
|
|
|
|
#
|
|
|
|
#- name: SERVICE | Ensure backuppc is started
|
|
|
|
# service: name=backuppc state=started enabled=yes
|