mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
cleaner Ansible messaging
This commit is contained in:
parent
4be8702090
commit
fbb68bdee6
1 changed files with 5 additions and 5 deletions
|
@ -7,24 +7,24 @@
|
|||
tags:
|
||||
- download
|
||||
|
||||
- name: put the config file in place
|
||||
- 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
|
||||
- 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
|
||||
- name: Create database for LAN to collect vnStat data if not appliance config
|
||||
shell: /usr/bin/vnstat -i {{ iiab_lan_iface }}
|
||||
when: not iiab_lan_iface == ""
|
||||
|
||||
- name: start vnstat daemon via systemd
|
||||
- name: Start vnStat daemon via systemd
|
||||
service: name=vnstat enabled=yes state=started
|
||||
|
||||
- name: Add vnstat to service list
|
||||
- name: Add vnStat to service list
|
||||
ini_file: dest='{{ service_filelist }}'
|
||||
section=vnstat
|
||||
option='{{ item.option }}'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue