mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 11:42:08 +00:00
* change apache_data to apache_user in all * no libapach2 in centos. just php. no php-magick in centos * remove redundant vars entries * do not create apache user * missed one pound sign * soft code all references to apache_user * centos requires older setuptools * revert ansible_lsb.id in xsce.yml * try getting recent pip * move pip download to 2prep so that kalite success is not dependent on iiab coming first * still need to replace setuptools in kalite * add curl -- needed in debian * massivly substitue iiab for xsce, and rename files * completed runansible * centos fixes,install pip * appliance means no iptables rules * change to earlier version of setuptools for centos * delete file duplicate, hopefully unnecessary. generate the offline docs * wiki docs errors * create the admin group -- deleted earlier * use the --yes option with pip uninstall * base of repo moved from schoolserver to iiab, unleashkids.org->iiab.io * network detection broken due to tupo
40 lines
1.2 KiB
YAML
40 lines
1.2 KiB
YAML
---
|
|
- name: Install required packages
|
|
package: name={{ item }}
|
|
state=present
|
|
with_items:
|
|
- vnstat
|
|
tags:
|
|
- download
|
|
|
|
- name: put the config file in place
|
|
template: src=vnstat.conf.j2
|
|
dest=/etc/vnstat.conf
|
|
mode=0744
|
|
owner=root
|
|
group=root
|
|
|
|
- name: create database for wan to collect vnstat data
|
|
shell: /usr/bin/vnstat -i {{ iiab_wan_iface }}
|
|
|
|
- name: create database for lan to collect vnstat data if not appliace config
|
|
shell: /usr/bin/vnstat -i {{ iiab_lan_iface }}
|
|
when: not iiab_lan_iface == ""
|
|
|
|
- name: start vnstat daemon via systemd
|
|
service: name=vnstat enabled=yes state=started
|
|
|
|
- name: Add vnstat to service list
|
|
ini_file: dest='{{ service_filelist }}'
|
|
section=vnstat
|
|
option='{{ item.option }}'
|
|
value='{{ item.value }}'
|
|
with_items:
|
|
- option: name
|
|
value: vnstat
|
|
- option: description
|
|
value: '"vnStat is a console-based network traffic monitor for Linux and BSD that keeps a log of network traffic for the selected interface(s)."'
|
|
- option: installed
|
|
value: "{{ vnstat_install }}"
|
|
- option: enabled
|
|
value: "{{ vnstat_enabled }}"
|