- add proc_chec - kills off extraneous chrome processes and restarts ntopng

This commit is contained in:
Pi
2019-08-06 10:21:48 -04:00
parent c3219158ec
commit 81592c1288
3 changed files with 21 additions and 0 deletions

View File

@@ -1,5 +1,6 @@
---
- hosts: all,!ansible-hosts
gather_facts: no
tasks:
- name: reboot
become: yes

View File

@@ -0,0 +1,6 @@
#!/bin/bash
/usr/bin/killall chromium-browser
/usr/bin/killall chromium-browser
/usr/bin/killall chromium-browser
systemctl restart ntopng

View File

@@ -72,6 +72,20 @@
# become: yes
#- name: set keyboard to us
# command: raspi-config nonint do_configure_keyboard us
- name: copy proc_check script and set exec
template:
src: "{{ role_path }}/files/proc_check.sh"
dest: /home/pi/scripts/proc_check.sh
owner: pi
group: pi
mode: a+x
- name: schedule proc_check script to run at 12:30am
cron:
name: "prock_check"
minute: "30"
hour: "0"
weekday: "*"
job: /home/pi/scripts/proc_check.sh
- name: pi
become: yes
user: