mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Update vnstat/tasks/main.yml
This commit is contained in:
parent
920e09be2c
commit
fdb671e862
1 changed files with 6 additions and 0 deletions
|
@ -19,6 +19,12 @@
|
|||
shell: /usr/bin/vnstat -i {{ iiab_lan_iface }}
|
||||
when: iiab_lan_iface is defined
|
||||
|
||||
- name: "Add 'vnstat_installed: True' to {{ iiab_state_file }}"
|
||||
lineinfile:
|
||||
dest: "{{ iiab_state_file }}" # /etc/iiab/iiab_state.yml
|
||||
regexp: '^vnstat_installed'
|
||||
line: 'vnstat_installed: True'
|
||||
|
||||
- name: Enable & Start vnStat's systemd service
|
||||
systemd:
|
||||
name: vnstat
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue